@Deprecated public abstract class CommandService extends Object
NOTE: CommandService
is currently available only on GemFire Manager nodes.
Modifier and Type | Field and Description |
---|---|
protected static Map<String,String> |
EMPTY_ENV
Deprecated.
|
Constructor and Description |
---|
CommandService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract CommandStatement |
createCommandStatement(String commandString)
Deprecated.
since Geode 1.3, simply call processCommand to execute the command
|
protected abstract CommandStatement |
createCommandStatement(String commandString,
Map<String,String> env)
Deprecated.
since Geode 1.3, simply call processCommand to execute the command
|
static CommandService |
createLocalCommandService(Cache cache)
Deprecated.
Returns a newly created or existing instance of the
CommandService associated with the
specified Cache . |
static CommandService |
getUsableLocalCommandService()
Deprecated.
Returns an existing 'usable'
CommandService . |
abstract boolean |
isUsable()
Deprecated.
Returns whether the underlying
Cache exists and is not closed. |
abstract Result |
processCommand(String commandString)
Deprecated.
Processes the specified command string.
|
protected abstract Result |
processCommand(String commandString,
Map<String,String> env)
Deprecated.
Processes the specified command string.
|
@Immutable protected static final Map<String,String> EMPTY_ENV
public abstract boolean isUsable()
Cache
exists and is not closed. The Cache must be
ready in order for commands to be processed using this CommandService
. A call to
this method should be made before attempting to process commands.Cache
exists and is not closed, false otherwise.public abstract Result processCommand(String commandString)
commandString
- Command string to be processed.Result
of the execution of this command string.protected abstract Result processCommand(String commandString, Map<String,String> env)
commandString
- Command string to be processed.env
- Environmental values that will be used during the execution of this command.Result
of the execution of this command string.@Deprecated public abstract CommandStatement createCommandStatement(String commandString)
CommandStatement
from the specified command string. Only remote commands
can be processed using this method. Refer to the vFabric GemFire documentation for details.commandString
- Command string from which to create a CommandStatement
.CommandStatement
which can be used to repeatedly process the same
command.CommandStatement.process()
@Deprecated protected abstract CommandStatement createCommandStatement(String commandString, Map<String,String> env)
CommandStatement
from the specified command string. Only remote commands
can be processed using this method. Refer to the vFabric GemFire documentation for details.commandString
- Command string from which to create a CommandStatement
.env
- Environmental values that will be used during the execution of this command.CommandStatement
which can be used to repeatedly process the same
command.CommandStatement.process()
public static CommandService createLocalCommandService(Cache cache) throws CommandServiceException
CommandService
associated with the
specified Cache
.cache
- Underlying Cache
instance to be used to create a Command Service.CommandService
associated with
the specified Cache
CommandServiceException
- If command service could not be initialized.public static CommandService getUsableLocalCommandService()
CommandService
. A CommandService
is
considered usable if at has an underlying Cache
which is not closed.CommandService
or null if one cannot be found.