GemFire 7.0

com.gemstone.gemfire.management.cli
Interface CommandStatement


public interface CommandStatement

Represents GemFire Command Line Interface (CLI) command strings. Same CommandStatement instance can be used multiple times to process the same command string repeatedly.

Since:
7.0

Method Summary
 String getCommandString()
          User specified command string
 Map<String,String> getEnv()
          GemFire CLI Environment in a Map.
 Result process()
          Processes this command statement with user specified command string & CLI Environment
 boolean validate()
          Whether the command statement is well formed
 

Method Detail

getCommandString

String getCommandString()
User specified command string

Returns:
User specified command string

getEnv

Map<String,String> getEnv()
GemFire CLI Environment in a Map. These environment variables might be used by command logic and for substitution in commands.

Returns:
Cli Environment in a Map

process

Result process()
Processes this command statement with user specified command string & CLI Environment

Returns:
Result of execution of this command statement

validate

boolean validate()
Whether the command statement is well formed

Returns:
true if the command statement is well formed, false otherwise

GemFire 7.0

Copyright © 1997-2012 VMware, Inc. All rights reserved.