public class ServiceStub extends com.vmware.vapi.internal.bindings.Stub implements Service
Service
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
ServiceStub(ApiProvider apiProvider,
StubConfigurationBase config) |
ServiceStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
ServiceInfo |
get(java.lang.String serviceId)
Retrieves information about the service element corresponding to
serviceId . |
void |
get(java.lang.String serviceId,
AsyncCallback<ServiceInfo> asyncCallback)
Retrieves information about the service element corresponding to
serviceId . |
void |
get(java.lang.String serviceId,
AsyncCallback<ServiceInfo> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the service element corresponding to
serviceId . |
ServiceInfo |
get(java.lang.String serviceId,
InvocationConfig invocationConfig)
Retrieves information about the service element corresponding to
serviceId . |
java.util.List<java.lang.String> |
list()
Returns the identifiers for the service elements that are currently registered
with the infrastructure.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers for the service elements that are currently registered
with the infrastructure.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the service elements that are currently registered
with the infrastructure.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers for the service elements that are currently registered
with the infrastructure.
|
public ServiceStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public ServiceStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<java.lang.String> list()
Service
The list of service elements is an aggregate list of all the service elements contained in all the package elements.
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.vapi.service
.public java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Service
The list of service elements is an aggregate list of all the service elements contained in all the package elements.
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<java.util.List<java.lang.String>> asyncCallback)
Service
The list of service elements is an aggregate list of all the service elements contained in all the package elements.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of identifiers for the service elements that are currently registered
with the infrastructure.
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<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Service
The list of service elements is an aggregate list of all the service elements contained in all the package elements.
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:
The list of identifiers for the service elements that are currently registered
with the infrastructure.
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 ServiceInfo get(java.lang.String serviceId)
Service
serviceId
.
The ServiceInfo
contains the metamodel information for the operation elements, structure
elements and enumeration elements contained in the service element.
Synchronous method overload. Result of the invocation will be reported as a method return value.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.ServiceInfo
instance that
corresponds to serviceId
public ServiceInfo get(java.lang.String serviceId, InvocationConfig invocationConfig)
Service
serviceId
.
The ServiceInfo
contains the metamodel information for the operation elements, structure
elements and enumeration elements contained in the service element.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.invocationConfig
- Configuration for the method invocation.ServiceInfo
instance that
corresponds to serviceId
public void get(java.lang.String serviceId, AsyncCallback<ServiceInfo> asyncCallback)
Service
serviceId
.
The ServiceInfo
contains the metamodel information for the operation elements, structure
elements and enumeration elements contained in the service element.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The ServiceInfo
instance that
corresponds to serviceId
Operation Errors:
NotFound
- if the service element associated with serviceId
is not registered with
the infrastructure.
serviceId
- Identifier of the service element.
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(java.lang.String serviceId, AsyncCallback<ServiceInfo> asyncCallback, InvocationConfig invocationConfig)
Service
serviceId
.
The ServiceInfo
contains the metamodel information for the operation elements, structure
elements and enumeration elements contained in the service element.
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:
The ServiceInfo
instance that
corresponds to serviceId
Operation Errors:
NotFound
- if the service element associated with serviceId
is not registered with
the infrastructure.
serviceId
- Identifier of the service element.
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.