public abstract class CommandService extends Object
CommandService is currently available only on
GemFire Manager nodes.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns a newly created or existing instance of the
Returns an existing 'usable'
Returns whether the underlying
Processes the specified command string.
public abstract boolean isUsable()
Cacheexists 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.
Cacheexists and is not closed, false otherwise.
commandString- Command string to be processed.
Resultof the execution of this command string.
public abstract CommandStatement createCommandStatement(String commandString)
CommandStatementfrom 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
CommandStatementwhich can be used to repeatedly process the same command.
public static final CommandService createLocalCommandService(Cache cache) throws CommandServiceException
associated with the specified
Cacheinstance to be used to create a Command Service.
CommandServiceException- If command service could not be initialized.
public static final CommandService getUsableLocalCommandService()
CommandServiceis considered usable if at has an underlying
Cachewhich is not closed.
CommandServiceor null if one cannot be found.
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.