|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.management.cli.CommandService
public abstract class CommandService
Can be used to process GemFire Command Line Interface (CLI) commands using API.
Note that only remote commands can be processed using this method. Please refer vFabric GemFire documentation for details.
| Constructor Summary | |
|---|---|
CommandService()
|
|
| Method Summary | |
|---|---|
abstract CommandStatement |
createCommandStatement(String commandString)
Creates a CommandStatement from the specified Command String. |
static CommandService |
createLocalCommandService(Cache cache)
Returns the instance of CommandService associated with the
specified Cache. |
static CommandService |
getUsableLocalCommandService()
Returns an existing 'usable' CommandService if any or null. |
abstract boolean |
isUsable()
Indicates whether the underlying Cache exists & is not closed so
that commands can be processed using this
CommandService. |
abstract Result |
processCommand(String commandString)
Processes the specified Command String. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandService()
| Method Detail |
|---|
public abstract boolean isUsable()
Cache exists & is not closed so
that commands can be processed using this
CommandService. This method should be used before processing
commands.
true if the underlying Cache is not yet
closed, false otherwisepublic abstract Result processCommand(String commandString)
commandString - command string to be processed.
Result which can be iterated through to retrieve the result
of command processing as String(s)public abstract CommandStatement createCommandStatement(String commandString)
CommandStatement from the specified Command String. Note
that only remote commands can be processed using this method. Please refer
vFabric GemFire documentation for details.
commandString - command string for which CommandStatement is required
CommandStatement which can be used later to process the
same command string repeatedly.CommandStatement.process()
public static final CommandService createLocalCommandService(Cache cache)
throws CommandServiceException
CommandService associated with the
specified Cache. If there exists a CommandService, it will be
returned or a new instance will be created
cache - Underlying Cache instance to be used to create a Command
Service
CommandService instance
CommandServiceException - if command service couldn't be initializedpublic static final CommandService getUsableLocalCommandService()
CommandService if any or null.
'usable' is the one whose underlying Cache is not closed
CommandService if any or null
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||