public class CliHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMMAND_KEY |
protected static String |
COMMAND_OUTPUT_TEXT_KEY |
static String |
CONNECT_CLI |
protected static String |
HALT_KEY |
protected static String |
LOCK_SERVICE_NAME |
protected static String |
lockObj |
protected static com.gemstone.gemfire.distributed.DistributedLockService |
lockService |
protected static String |
PRESENTATION_STR_KEY |
static String |
START_NEW_CLI |
| Constructor and Description |
|---|
CliHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
execCommand(String command,
boolean haltOnCommandFailure)
Execute the given command either in this member or a remote member depending on the value
of CliHelperPrms.executeRemote.
|
static String[] |
execCommandLocally(String command,
boolean haltOnCommandFailure)
Execute the given command in this member
|
static String[] |
execCommandOnRemoteCli(String command,
boolean haltOnCommandFailure)
Execute the given command in another member running gfsh.
|
static void |
HydraTask_execCommandFromBB()
Execute a command in this member running gfsh.
|
protected static com.gemstone.gemfire.distributed.DistributedLockService lockService
protected static final String LOCK_SERVICE_NAME
protected static final String lockObj
protected static final String COMMAND_KEY
protected static final String HALT_KEY
protected static final String COMMAND_OUTPUT_TEXT_KEY
protected static final String PRESENTATION_STR_KEY
public static final String START_NEW_CLI
public static final String CONNECT_CLI
public static String[] execCommand(String command, boolean haltOnCommandFailure)
command - The command to execute.haltOnCommandFailure - If false, then allow the method to fail when the command fails.
if true, then expect the method to succeed when, for example, the test gave the
command bad arguments intentionally.public static String[] execCommandLocally(String command, boolean haltOnCommandFailure)
command - The command to execute.haltOnCommandFailure - If false, then allow the method to fail when the command fails.
if true, then expect the method to succeed when, for example, the test gave the
command bad arguments intentionally.public static String[] execCommandOnRemoteCli(String command, boolean haltOnCommandFailure)
command - The command to execute.haltOnCommandFailure - If false, then allow the method to fail when the command fails.
if true, then expect the method to succeed when, for example, the test gave the
command bad arguments intentionally.public static void HydraTask_execCommandFromBB()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.