public abstract class AbstractTestCommandExecutor extends Object implements TestCommandExecutor
| Modifier and Type | Field and Description |
|---|---|
static String |
COLOCATED_REGION_PATTERN |
static String |
COLOCATED_ROOT_DISK_REGION |
static String |
COLOCATED_ROOT_REGION |
static String |
FILE_TYPE_TEXT |
| Constructor and Description |
|---|
AbstractTestCommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFailure(String message) |
protected void |
addToPausedSenderIdList(String senderId) |
protected void |
addToRunningSenderIdList(String senderId) |
protected void |
addToStoppedSenderIdList(String senderId) |
protected boolean |
checkDirectory(String directory2) |
protected boolean |
checkFile(String fileName) |
Object |
execute(TestCommandInstance instance) |
Object |
executeAndVerify(TestCommandInstance instance) |
protected abstract void |
fillArgument(TestCommandInstance instance,
String name) |
void |
fillArguments(TestCommandInstance instance,
List<String> args) |
protected abstract void |
fillMandatoryOption(TestCommandInstance instance,
String name) |
void |
fillMandotoryOptionValues(TestCommandInstance instance,
List<String> mandotoryCommandOptions) |
protected abstract void |
fillOption(TestCommandInstance instance,
TestCommand.CommandOption op) |
void |
fillOptionValues(TestCommandInstance instance,
List<TestCommand.CommandOption> options) |
protected String |
getAlreadyExistingRegion()
Return a random region from region list exported to Blackboard using RegionEvents
|
protected String |
getCurrentRegion()
Return a random region from region list exported to Blackboard using RegionEvents
This will remove all region destroyed and exported to Blackboard using RegionEvents
|
protected String |
getCurrentRegionFilterColocated()
Same as getCurrentRegion but filters out co-located regions
Regions mentioned here are according to template file : createRegionDefinitions.inc
|
protected String |
getDirectory(String prefix) |
protected Object |
getDiskStore() |
protected String |
getFile(String prefix,
String type) |
protected Object |
getFunctionId() |
protected String |
getGroup() |
protected String |
getGroups() |
protected String |
getGroupsNoManaging() |
protected String |
getMemberId() |
protected String |
getMemberIdInDS()
This method filter managing node and then filters memberId for members only present
in Gfsh's DS.
|
protected String |
getMemberIds() |
protected String |
getNewRegion(String prefix) |
protected String |
getPausedSenderId() |
protected Object |
getPrColocatedRootRegion() |
protected Object |
getRegion() |
protected String |
getRunningSenderId() |
protected String |
getSenderId() |
protected String |
getStoppedSenderId() |
void |
setUpGemfire()
Mandate to implement validation using gemfire APIs
|
Object |
verifyCommand(TestableGfsh gfsh,
Object object)
Mandate to implement validation using other commands
|
Object |
verifyGemfire(TestableGfsh gfsh,
Object object) |
Object |
verifyJMX(TestableGfsh gfsh,
Object object)
Mandate to implement validation using JMX APIs
|
public static final String FILE_TYPE_TEXT
public static final String COLOCATED_ROOT_REGION
public static final String COLOCATED_ROOT_DISK_REGION
public static final String COLOCATED_REGION_PATTERN
public void fillOptionValues(TestCommandInstance instance, List<TestCommand.CommandOption> options)
fillOptionValues in interface TestCommandExecutorpublic void fillMandotoryOptionValues(TestCommandInstance instance, List<String> mandotoryCommandOptions)
fillMandotoryOptionValues in interface TestCommandExecutorpublic void fillArguments(TestCommandInstance instance, List<String> args)
fillArguments in interface TestCommandExecutorpublic Object verifyGemfire(TestableGfsh gfsh, Object object)
verifyGemfire in interface TestCommandExecutorpublic Object verifyJMX(TestableGfsh gfsh, Object object)
TestCommandExecutorverifyJMX in interface TestCommandExecutorpublic Object verifyCommand(TestableGfsh gfsh, Object object)
TestCommandExecutorverifyCommand in interface TestCommandExecutorpublic Object execute(TestCommandInstance instance)
execute in interface TestCommandExecutorpublic void setUpGemfire()
TestCommandExecutorsetUpGemfire in interface TestCommandExecutorprotected abstract void fillArgument(TestCommandInstance instance, String name)
protected abstract void fillOption(TestCommandInstance instance, TestCommand.CommandOption op)
protected abstract void fillMandatoryOption(TestCommandInstance instance, String name)
public Object executeAndVerify(TestCommandInstance instance)
executeAndVerify in interface TestCommandExecutorprotected String getMemberId()
protected String getMemberIds()
protected String getGroup()
protected String getGroups()
protected Object getPrColocatedRootRegion()
protected String getAlreadyExistingRegion()
protected String getCurrentRegion()
protected String getCurrentRegionFilterColocated()
protected Object getDiskStore()
protected boolean checkDirectory(String directory2)
protected boolean checkFile(String fileName)
protected void addFailure(String message)
protected String getSenderId()
protected String getRunningSenderId()
protected String getPausedSenderId()
protected String getStoppedSenderId()
protected void addToRunningSenderIdList(String senderId)
protected void addToPausedSenderIdList(String senderId)
protected void addToStoppedSenderIdList(String senderId)
protected String getMemberIdInDS()
protected String getGroupsNoManaging()
protected Object getRegion()
protected Object getFunctionId()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.