public class CliHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COMMAND_KEY |
protected static java.lang.String |
COMMAND_OUTPUT_TEXT_KEY |
static java.lang.String |
CONNECT_CLI |
protected static java.lang.String |
HALT_KEY |
protected static java.lang.String |
LOCK_SERVICE_NAME |
protected static java.lang.String |
lockObj |
protected static com.gemstone.gemfire.distributed.DistributedLockService |
lockService |
protected static java.lang.String |
PRESENTATION_STR_KEY |
static java.lang.String |
START_NEW_CLI |
| Constructor and Description |
|---|
CliHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
execCommand(java.lang.String command,
boolean haltOnCommandFailure)
Execute the given command either in this member or a remote member depending on the value
of CliHelperPrms.executeRemote.
|
static java.lang.String[] |
execCommandLocally(java.lang.String command,
boolean haltOnCommandFailure)
Execute the given command in this member
|
static java.lang.String[] |
execCommandOnRemoteCli(java.lang.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 java.lang.String LOCK_SERVICE_NAME
protected static final java.lang.String lockObj
protected static final java.lang.String COMMAND_KEY
protected static final java.lang.String HALT_KEY
protected static final java.lang.String COMMAND_OUTPUT_TEXT_KEY
protected static final java.lang.String PRESENTATION_STR_KEY
public static final java.lang.String START_NEW_CLI
public static final java.lang.String CONNECT_CLI
public static java.lang.String[] execCommand(java.lang.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 java.lang.String[] execCommandLocally(java.lang.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 java.lang.String[] execCommandOnRemoteCli(java.lang.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.