public class ServiceStub extends com.vmware.vapi.internal.bindings.Stub implements Service
Service
API service.
WARNING: Internal API, subject to change in future versions.
ServiceTypes.Info
Constructor and Description |
---|
ServiceStub(ApiProvider apiProvider,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ServiceTypes.Info |
get(String id)
Returns the
ServiceTypes.Info for the
specified service |
void |
get(String id,
AsyncCallback<ServiceTypes.Info> asyncCallback)
Returns the
ServiceTypes.Info for the
specified service |
void |
get(String id,
AsyncCallback<ServiceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns the
ServiceTypes.Info for the
specified service |
ServiceTypes.Info |
get(String id,
InvocationConfig invocationConfig)
Returns the
ServiceTypes.Info for the
specified service |
Set<String> |
list()
Returns the set of service identifiers.
|
void |
list(AsyncCallback<Set<String>> asyncCallback)
Returns the set of service identifiers.
|
void |
list(AsyncCallback<Set<String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the set of service identifiers.
|
Set<String> |
list(InvocationConfig invocationConfig)
Returns the set of service identifiers.
|
public ServiceStub(ApiProvider apiProvider, StubConfigurationBase config)
public Set<String> list()
Service
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.vapi.service
.public Set<String> list(InvocationConfig invocationConfig)
Service
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.com.vmware.vapi.service
.public void list(AsyncCallback<Set<String>> asyncCallback)
Service
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
set of service identifiers
The return value will contain identifiers for the resource type: com.vmware.vapi.service
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(AsyncCallback<Set<String>> asyncCallback, InvocationConfig invocationConfig)
Service
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
set of service identifiers
The return value will contain identifiers for the resource type: com.vmware.vapi.service
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public ServiceTypes.Info get(String id)
Service
ServiceTypes.Info
for the
specified service
Synchronous method overload. Result of the invocation will be reported as a method return value.
id
- service identifier
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.ServiceTypes.Info
for the specified
servicepublic ServiceTypes.Info get(String id, InvocationConfig invocationConfig)
Service
ServiceTypes.Info
for the
specified service
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
id
- service identifier
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.invocationConfig
- Configuration for the method invocation.ServiceTypes.Info
for the specified
servicepublic void get(String id, AsyncCallback<ServiceTypes.Info> asyncCallback)
Service
ServiceTypes.Info
for the
specified service
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
ServiceTypes.Info
for the specified
service
Operation Errors:
NotFound
- If the service identifier does not exist
id
- service identifier
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(String id, AsyncCallback<ServiceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Service
ServiceTypes.Info
for the
specified service
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
ServiceTypes.Info
for the specified
service
Operation Errors:
NotFound
- If the service identifier does not exist
id
- service identifier
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2015. All Rights Reserved.