public class AdminTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
accessAllRegions |
protected static boolean |
adminInDsVm |
protected static int |
dispCacheAttrs |
protected static int |
dispRegionAttrs |
com.gemstone.gemfire.admin.AdminDistributedSystem |
ds |
protected static int |
firstGfHealthOperation |
protected static int |
firstGfManagerOperation |
protected static int |
firstSystemMemberOperation |
protected static int |
getProductDirectoryOp |
protected static int[] |
GfHealthOperations |
protected static int[] |
GfManagerOperations |
protected static int |
lastGfHealthOperation |
protected static int |
lastGfManagerOperation |
protected static int |
lastSystemMemberOperation |
protected static String |
logLevel |
protected static int |
modifyCacheAttrs |
protected static int |
setHealthEvalIntervalOp |
protected static int[] |
SystemMemberOperations |
static AdminTest |
testInstance |
| Constructor and Description |
|---|
AdminTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accessAllRegions(com.gemstone.gemfire.admin.SystemMemberCache smCache) |
static void |
anyAdminOpsTask()
Hydra task to do random admin operations to any admin component for a time period
specified by minTaskGranularitySec.
|
static void |
createLocatorTask()
Creates a (disconnected) locator.
|
protected void |
createRegionHierarchy()
Create a hierarchy of regions using admin.AdminPrms.numRootRegions,
admin.AdminPrms.numSubRegions and admin.AdminPrms.regionDepth
|
static void |
createRegionHierarchyTask()
Create a region hierarchy -- we need dozens of regions
|
static void |
createSubRegions(com.gemstone.gemfire.cache.Region r,
int numChildren,
int levelsLeft,
String parentName,
RegionDefinition regDef)
Creates a well defined set of branches from the given root
|
protected void |
dispCacheAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache) |
protected void |
dispRegionAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache)
Display various attributes about a randomly chosen region in the given
SystemMemberCache.
|
static void |
dispRegions() |
protected void |
doAnyAdminOps()
Randomly do any admin operation on any admin component for minTaskGranularitySec.
|
protected void |
doGFHealthOps(long msToRun)
Get an instance of GemFireHealth and randomly exercise it for msToRun millis.
|
protected void |
doHealthMonitor()
Monitors the health of the distributed system.
|
protected void |
doSystemMemberOps(long msToRun)
Choose a random SystemMember, and do random operations on it for msToRun millis.
|
protected ArrayList |
getAllRegionNames(com.gemstone.gemfire.admin.SystemMemberCache smCache) |
protected String |
getRandomRegion(com.gemstone.gemfire.admin.SystemMemberCache smCache)
Returns the name of a randomly-selected region in the given
cache.
|
protected ArrayList |
getRegionNames(com.gemstone.gemfire.admin.SystemMemberCache smCache,
com.gemstone.gemfire.admin.SystemMemberRegion smRegion) |
static void |
GFHealthOpsTask()
Hydra task to do random admin operations on an instance of GemFireHealth
|
static void |
healthMonitorTask()
Hydra task to monitor the health of the distributed system.
|
protected void |
initialize()
Create an admin DistributedSystem and connect
|
static void |
initializeForCacheTask()
Hydra task to initialize an
AdminTest for hosting a
Cache. |
static void |
initializeForSameVmTask()
Hydra task to initialize an
AdminTest for hosting a
Cache and for admin of the distributed system in the
same VM. |
static void |
initializeTask()
Hydra task to initialize admin variables in an instance of
this class.
|
protected void |
modifyCacheAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache) |
protected String |
opToString(int op)
Given an operation on some admin component, return a string description of
the operation.
|
static void |
startAgentTask()
Hydra task to start JMX agent and connect it to an admin distributed system.
|
static void |
startAndConnectLocatorTask()
Connects a locator to its distributed system.
|
static void |
stopLocatorTask()
Stops a locator.
|
static void |
SystemMemberOpsTask()
Hydra task to do random admin operations on a random GemFireManager
|
static void |
validateTest()
space holder for future endTask
|
protected void |
waitForSystemMembers()
Wait for the number of system members to be equal to the number of VMs
|
static void |
waitForSystemMembersTask()
Hydra task to wait for all system members to appear.
|
public static AdminTest testInstance
protected static final boolean adminInDsVm
protected static final String logLevel
protected static int[] GfManagerOperations
protected static final int getProductDirectoryOp
protected static final int firstGfManagerOperation
protected static final int lastGfManagerOperation
protected static int[] SystemMemberOperations
protected static final int accessAllRegions
protected static final int dispCacheAttrs
protected static final int modifyCacheAttrs
protected static final int dispRegionAttrs
protected static final int firstSystemMemberOperation
protected static final int lastSystemMemberOperation
protected static int[] GfHealthOperations
protected static final int setHealthEvalIntervalOp
protected static final int firstGfHealthOperation
protected static final int lastGfHealthOperation
public com.gemstone.gemfire.admin.AdminDistributedSystem ds
protected String opToString(int op)
public static void createLocatorTask()
public static void startAndConnectLocatorTask()
public static void stopLocatorTask()
public static void startAgentTask()
public static void createRegionHierarchyTask()
protected void createRegionHierarchy()
public static void createSubRegions(com.gemstone.gemfire.cache.Region r,
int numChildren,
int levelsLeft,
String parentName,
RegionDefinition regDef)
public static void dispRegions()
public static void initializeTask()
public static void initializeForCacheTask()
AdminTest for hosting a
Cache. Connects to a non-admin distributed system.public static void initializeForSameVmTask()
AdminTest for hosting a
Cache and for admin of the distributed system in the
same VM. Connects to an admin distributed system and to a non-admin
distributed system..protected void initialize()
public static void GFHealthOpsTask()
protected void doGFHealthOps(long msToRun)
msToRun - - the number of milliseconds to do random operations.public static void SystemMemberOpsTask()
protected void doSystemMemberOps(long msToRun)
msToRun - - the number of milliseconds to do random operations.protected void accessAllRegions(com.gemstone.gemfire.admin.SystemMemberCache smCache)
protected void dispCacheAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache)
protected void modifyCacheAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache)
throws com.gemstone.gemfire.admin.AdminException
com.gemstone.gemfire.admin.AdminExceptionprotected void dispRegionAttrs(com.gemstone.gemfire.admin.SystemMemberCache smCache)
throws com.gemstone.gemfire.admin.AdminException
smCache - The SystemMemberCache to get a random region from.com.gemstone.gemfire.admin.AdminExceptionprotected String getRandomRegion(com.gemstone.gemfire.admin.SystemMemberCache smCache) throws com.gemstone.gemfire.admin.AdminException
null is returned.com.gemstone.gemfire.admin.AdminExceptionprotected ArrayList getAllRegionNames(com.gemstone.gemfire.admin.SystemMemberCache smCache)
protected ArrayList getRegionNames(com.gemstone.gemfire.admin.SystemMemberCache smCache, com.gemstone.gemfire.admin.SystemMemberRegion smRegion)
public static void validateTest()
public static void anyAdminOpsTask()
protected void doAnyAdminOps()
public static void waitForSystemMembersTask()
protected void waitForSystemMembers()
public static void healthMonitorTask()
protected void doHealthMonitor()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.