public class CommandStub extends com.vmware.vapi.internal.bindings.Stub implements Command
Command
API service.
WARNING: Internal class, subject to change in future versions.
CommandTypes.FormatterType, CommandTypes.GenericType, CommandTypes.Identity, CommandTypes.Info, CommandTypes.OptionInfo, CommandTypes.OutputFieldInfo, CommandTypes.OutputInfo
apiProvider, converter, ifaceId, retryPolicy, securityContext
_VAPI_SERVICE_ID
Constructor and Description |
---|
CommandStub(ApiProvider apiProvider,
StubConfigurationBase config) |
CommandStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fingerprint()
Returns the aggregate fingerprint of all the command metadata from all the
metadata sources.
|
void |
fingerprint(AsyncCallback<java.lang.String> asyncCallback)
Returns the aggregate fingerprint of all the command metadata from all the
metadata sources.
|
void |
fingerprint(AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Returns the aggregate fingerprint of all the command metadata from all the
metadata sources.
|
java.lang.String |
fingerprint(InvocationConfig invocationConfig)
Returns the aggregate fingerprint of all the command metadata from all the
metadata sources.
|
CommandTypes.Info |
get(CommandTypes.Identity identity)
Retrieves information about a command including information about how to execute
that command.
|
void |
get(CommandTypes.Identity identity,
AsyncCallback<CommandTypes.Info> asyncCallback)
Retrieves information about a command including information about how to execute
that command.
|
void |
get(CommandTypes.Identity identity,
AsyncCallback<CommandTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about a command including information about how to execute
that command.
|
CommandTypes.Info |
get(CommandTypes.Identity identity,
InvocationConfig invocationConfig)
Retrieves information about a command including information about how to execute
that command.
|
java.util.List<CommandTypes.Identity> |
list(java.lang.String path)
Returns the identifiers of all commands, or commands in a specific namespace.
|
void |
list(java.lang.String path,
AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback)
Returns the identifiers of all commands, or commands in a specific namespace.
|
void |
list(java.lang.String path,
AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of all commands, or commands in a specific namespace.
|
java.util.List<CommandTypes.Identity> |
list(java.lang.String path,
InvocationConfig invocationConfig)
Returns the identifiers of all commands, or commands in a specific namespace.
|
public CommandStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public CommandStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<CommandTypes.Identity> list(java.lang.String path)
Command
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<CommandTypes.Identity> list(java.lang.String path, InvocationConfig invocationConfig)
Command
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
list
in interface Command
path
- The dot-separated path of the namespace for which command identifiers should be
returned.
If null
identifiers of all commands registered with the infrastructure
will be returned.invocationConfig
- Configuration for the method invocation.public void list(java.lang.String path, AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback)
Command
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Identifiers of the requested commands.
Operation Errors:
NotFound
- if a namespace corresponding to path
doesn't exist.
list
in interface Command
path
- The dot-separated path of the namespace for which command identifiers should be
returned.
If null
identifiers of all commands registered with the infrastructure
will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String path, AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback, InvocationConfig invocationConfig)
Command
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Identifiers of the requested commands.
Operation Errors:
NotFound
- if a namespace corresponding to path
doesn't exist.
list
in interface Command
path
- The dot-separated path of the namespace for which command identifiers should be
returned.
If null
identifiers of all commands registered with the infrastructure
will be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public CommandTypes.Info get(CommandTypes.Identity identity)
Command
Synchronous method overload. Result of the invocation will be reported as a method return value.
public CommandTypes.Info get(CommandTypes.Identity identity, InvocationConfig invocationConfig)
Command
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void get(CommandTypes.Identity identity, AsyncCallback<CommandTypes.Info> asyncCallback)
Command
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the command including information about how to execute that
command.
Operation Errors:
NotFound
- if a command corresponding to identity
doesn't exist.
public void get(CommandTypes.Identity identity, AsyncCallback<CommandTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Command
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Information about the command including information about how to execute that
command.
Operation Errors:
NotFound
- if a command corresponding to identity
doesn't exist.
public java.lang.String fingerprint()
Command
The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server.
Synchronous method overload. Result of the invocation will be reported as a method return value.
fingerprint
in interface Command
public java.lang.String fingerprint(InvocationConfig invocationConfig)
Command
The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
fingerprint
in interface Command
invocationConfig
- Configuration for the method invocation.public void fingerprint(AsyncCallback<java.lang.String> asyncCallback)
Command
The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Fingerprint of all the command metadata present on the server.
fingerprint
in interface Command
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void fingerprint(AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Command
The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Fingerprint of all the command metadata present on the server.
fingerprint
in interface Command
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.