public interface Command extends Service, CommandTypes
Command
interface provides methods to get information about command
line interface (CLI) commands.CommandTypes.FormatterType, CommandTypes.GenericType, CommandTypes.Identity, CommandTypes.Info, CommandTypes.OptionInfo, CommandTypes.OutputFieldInfo, CommandTypes.OutputInfo
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.
|
java.util.List<CommandTypes.Identity> list(java.lang.String path)
Synchronous method overload. Result of the invocation will be reported as a method return value.
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.NotFound
- if a namespace corresponding to path
doesn't exist.java.util.List<CommandTypes.Identity> list(java.lang.String path, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
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.NotFound
- if a namespace corresponding to path
doesn't exist.void list(java.lang.String path, AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Identifiers of the requested commands.
Operation Errors:
NotFound
- if a namespace corresponding to path
doesn't exist.
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.void list(java.lang.String path, AsyncCallback<java.util.List<CommandTypes.Identity>> asyncCallback, InvocationConfig invocationConfig)
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:
Identifiers of the requested commands.
Operation Errors:
NotFound
- if a namespace corresponding to path
doesn't exist.
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.CommandTypes.Info get(CommandTypes.Identity identity)
Synchronous method overload. Result of the invocation will be reported as a method return value.
identity
- Identifier of the command for which to retreive information.NotFound
- if a command corresponding to identity
doesn't exist.CommandTypes.Info get(CommandTypes.Identity identity, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
identity
- Identifier of the command for which to retreive information.invocationConfig
- Configuration for the method invocation.NotFound
- if a command corresponding to identity
doesn't exist.void get(CommandTypes.Identity identity, AsyncCallback<CommandTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation 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.
identity
- Identifier of the command for which to retreive information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(CommandTypes.Identity identity, AsyncCallback<CommandTypes.Info> asyncCallback, InvocationConfig invocationConfig)
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:
Information about the command including information about how to execute that
command.
Operation Errors:
NotFound
- if a command corresponding to identity
doesn't exist.
identity
- Identifier of the command for which to retreive information.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String fingerprint()
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.
java.lang.String fingerprint(InvocationConfig invocationConfig)
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.
invocationConfig
- Configuration for the method invocation.void fingerprint(AsyncCallback<java.lang.String> asyncCallback)
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
.
Operation Result:
Fingerprint of all the command metadata present on the server.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void fingerprint(AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
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.
Operation Result:
Fingerprint of all the command metadata present on the server.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.