public class CachePerfClient extends Object
| Constructor and Description |
|---|
CachePerfClient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDataHostTask()
TASK to add a new datahost and rebalance.
|
static void |
addGatewaysTask()
TASK to add gateways.
|
static void |
addWBCLGatewayTask()
TASK to add a WBCL gateway.
|
protected void |
assignBuckets() |
static void |
assignBucketsTask()
INITTASK to assign buckets for a partitioned region.
|
protected void |
begin() |
static void |
bounceTask()
TASK to bounce a VM.
|
protected void |
cacheEndTrim(Map intervals,
int name)
Caches the end of a named trim interval for this thread.
|
protected void |
cacheStartTrim(Map intervals,
int name)
Caches the start of a named trim interval for this thread.
|
protected void |
checkForTxEnd(int terminationType)
Check for ending the transaction.
|
protected boolean |
checkFrequency(long lastCheckTime,
CachePerfPrms.Frequency f) |
static void |
clearTask() |
protected void |
closeCache() |
static void |
closeCacheTask()
TASK to unhook a vm from the cache.
|
protected void |
closeStatistics() |
static void |
closeStatisticsTask()
TASK to unregister the cache performance and clock skew statistics objects.
|
static void |
combinePutGetDataTask()
TASK to do object put/gets.
|
static void |
compactionTask()
TASK to run disk compaction.
|
static void |
connectTask()
TASK to connect to the distributed system.
|
protected void |
create(int i) |
static void |
createAllDataTask()
TASK using putAll to create a map containing
#bulkOpMapSize objects of type CachePerfPrms.objectType. |
static void |
createAndStartLocatorTask()
TASK to create and start a locator and connect it to an admin distributed
system.
|
protected void |
createCache() |
static void |
createCacheTask()
TASK to hook a vm to the cache without creating regions.
|
protected void |
createData() |
static void |
createDataTask()
TASK to create objects of type
CachePerfPrms.objectType. |
static void |
createEntryMapTask()
TASK to create a map containing objects of type
CachePerfPrms.objectType. |
static void |
createGatewayHubTask()
TASK to create a gateway hub.
|
static void |
createGatewaySenderIdsTask()
Creates GatewaySender ids based on the
ConfigPrms.gatewaySenderConfig. |
static void |
createKeysTask()
TASK to create keys for objects of type
CachePerfPrms.objectType. |
static void |
createPoolTask()
TASK to create a pool.
|
static void |
cycleDistributedSystemConnectionOnlyTask()
TASK to cycle the connection on a distributed system, sidestepping the
distcache framework altogether.
|
static void |
cycleDistributedSystemConnectionTask()
TASK to cycle the connection on a distributed system, creating a cache
and region from an XML file based on settings of
ConfigPrms.cacheConfig and ConfigPrms.regionConfig,
sidestepping the distcache framework altogether. |
static void |
cycleDurableClientTask()
TASK to create a durable client and retrieve updates from the server,
ignoring the distcache framework altogether.
|
static void |
cycleGatewayHubConnectionTask()
TASK to cycle a gateway hub connection, avoiding logging.
|
static void |
cycleLockTask()
TASK to lock and unlock a lock.
|
static void |
cyclePoolAndRegionTask()
TASK to create and destroy a connection pool and region, sidestepping
the distcache framework altogether.
|
static void |
cyclePoolTask()
TASK to create and destroy a connection pool, over and over, sidestepping
the distcache framework altogether.
|
static void |
cycleRegisterInterestRegexTask()
TASK to cycle interest in all keys using a regular expression.
|
protected void |
destroy(int i) |
protected void |
destroyData() |
static void |
destroyDataTask()
TASK to destroy objects.
|
static void |
disconnectTask()
TASK to disconnect from the distributed system.
|
static void |
doGC()
TASK to do a gc.
|
static void |
dumpHeapTask() |
protected void |
endTx() |
protected boolean |
executeBatchTerminator() |
protected void |
executeTaskTerminator() |
protected Object |
executeTerminator(Method m) |
protected void |
executeWarmupTerminator() |
protected void |
get(int i) |
static void |
getAllDataTask()
TASK using getAll to get a map containing
#bulkOpMapSize objects of type CachePerfPrms.objectType. |
protected DistCache |
getCache()
Gets the per-thread cache wrapper instance.
|
protected int |
getCount()
Gets the count for a thread's workload.
|
protected int |
getCurrentKey()
Gets the current key for a thread's workload.
|
protected long |
getCurrentNumPseudoRandomKeys()
Gets the current number of pseudo-random keys generated by this thread.
|
protected long |
getCurrentSequenceNumber()
Gets the current sequence number for pseudo-random ops.
|
protected void |
getData() |
static void |
getDataComparisonTask()
TASK to get objects for comparison purposes.
|
static void |
getDataTask()
TASK to get objects.
|
static void |
getExtraDataTask()
CLOSETASK to get extra objects, untrimmed.
|
protected HistogramStats |
getHistogram()
Gets the per-thread cache histogram statistics instance.
|
protected int |
getKeyCount()
Gets the key count for a thread's workload.
|
protected Random |
getKeyGenerator()
Gets the key generator for zipfian and scrambledZipfian distribution
|
protected String |
getKeyType()
Gets the key type for a thread's workload.
|
protected long |
getLastTaskTerminatorTime()
Gets the last task terminator time for a thread's workload.
|
protected long |
getLastWarmupTerminatorTime()
Gets the last warmup terminator time for a thread's workload.
|
protected Method |
getMethod(String className,
String methodName) |
protected int |
getNextKey() |
protected long |
getNumPseudoRandomKeys()
Gets the desired number of pseudo-random ops for this thread
|
protected int |
getRecentKey() |
static void |
getRecentKeyDataTask()
TASK to do gets with a certain percentage of recently used
keys.
|
protected String |
getResultString(com.gemstone.gemfire.cache.query.SelectResults results) |
protected GsRandom |
getRNG()
Gets the random number generator.
|
protected long |
getStartingSequenceNumber()
Gets the starting sequence number for pseudo-random unique keys
|
protected long |
getStartTime()
Gets the start time for a thread's workload.
|
protected CachePerfStats |
getStatistics()
Gets the per-thread cache performance statistics instance.
|
protected TestTask |
getTask()
Gets the current task.
|
protected TrimInterval |
getTrimInterval(Map intervals,
int name)
Gets the trim interval with the given name.
|
protected Map |
getTrimIntervals()
Gets the map of trim intervals.
|
protected com.gemstone.gemfire.cache.CacheTransactionManager |
getTxMgr()
Gets the per-thread transactionMgr instance
|
protected boolean |
getWarmedUp()
Gets whether the thread is warmed up.
|
protected int |
getWarmUpCount()
Gets the number of iterations executed during warmup.
|
protected long |
getWarmUpTime()
Gets the time passed during warmup.
|
protected void |
indexData() |
static void |
indexDataTask()
TASK to index objects with
CachePerfPrms.queryIndex and CachePerfPrms.queryFromClause. |
protected void |
initBatchVariables() |
static void |
initGatewayReceiverTask()
Initializes (create and start) GatewayReceiver based on the
ConfigPrms#GatewayReceiverConfig. |
static void |
initGatewaySenderTask()
Initializes (create and start) GatewaySender based on the
ConfigPrms.gatewaySenderConfig. |
protected void |
initHydraThreadLocals() |
protected void |
initialize() |
protected void |
initialize(int trimInterval) |
protected void |
initLocalParameters() |
protected void |
initLocalVariables(int trimInterval) |
protected int |
jid()
Gets the client's JVM thread id.
|
protected static com.gemstone.gemfire.LogWriter |
log()
Gets the log writer.
|
static void |
mixCreateGetDataTask()
TASK to mix object creates and gets.
|
static void |
mixPutGetDataTask()
TASK to mix object puts and gets.
|
protected String |
nameFor(int name) |
static int |
numThreads()
Gets the total number of threads eligible to run the current task.
|
protected int |
numWanSites()
Gets the number of wan sites in the test.
|
static void |
openCacheTask()
TASK to hook a vm to the cache.
|
static void |
openStatisticsTask()
TASK to register the cache performance and clock skew statistics objects.
|
void |
processNullValue(Object key) |
protected void |
put(int i) |
static void |
putAllDataTask()
TASK using putAll to put a map containing
#bulkOpMapSize objects of type CachePerfPrms.objectType. |
static void |
putAllEntryMapTask()
TASK to putAll the map created in
createEntryMapTask(). |
static void |
putDataAndSyncTask()
Task that calls putDataTask, and then syncs twice on a barrier.
|
static void |
putDataComparisonTask()
TASK to put objects for comparison purposes.
|
static void |
putDataGatewayTask()
TASK to put objects and wait for the gateway queues to drain.
|
static void |
putDataGWSenderTask()
TASK to put objects with new wan and wait for the sender queues to drain.
|
static void |
putDataTask()
TASK to put objects.
|
static void |
putExtraDataTask()
CLOSETASK to put extra objects, untrimmed.
|
protected void |
query(com.gemstone.gemfire.cache.query.Query query) |
protected void |
queryData() |
static void |
queryDataTask()
TASK to query objects with
CachePerfPrms.query using the query
service. |
protected void |
queryRangeRegion(com.gemstone.gemfire.cache.Region region,
String queryPredicate) |
protected void |
queryRangeRegionData() |
static void |
queryRangeRegionDataTask()
TASK to query objects with
CachePerfPrms.query using region query
over a randomized range of size CachePerfPrms.queryRangeSize. |
protected void |
queryRegion(com.gemstone.gemfire.cache.Region region,
String queryPredicate) |
protected void |
queryRegionData() |
static void |
queryRegionDataTask()
TASK to query objects with
CachePerfPrms.query using region query. |
static void |
readyForEventsTask()
Signals the cache that the client is ready for events.
|
protected void |
rebalance() |
static void |
rebalanceTask() |
protected void |
registerInterest(int i,
int interestBatchSize) |
protected void |
registerInterest(Object key,
int interestBatchSize) |
static void |
registerInterestRegexAllTask()
TASK to register interest in all keys using a regular expression.
|
static void |
registerInterestRegexTask()
TASK to register interest using a regular expression.
|
static void |
registerInterestTask()
TASK to register interest.
|
static void |
reportExtendedTrimIntervalsTask()
CLOSETASK to report extended trim intervals.
|
static void |
reportTrimIntervalsTask()
CLOSETASK to report trim intervals.
|
protected void |
resetHydraThreadLocals(boolean resetKeys) |
static void |
resetPseudoRandomUniqueKeysTask()
Reset so that getting keys will retrieve the same pseudo-random unique keys as
previously done.
|
static void |
restartDataHostTask()
TASK to restart a datahost.
|
static void |
restartLocatorTask()
TASK to restart a locator and connect it to an admin distributed system.
|
static void |
restartTask() |
protected void |
setCache(DistCache c)
Sets the per-thread cache wrapper instance.
|
protected void |
setCount(int n)
Sets the count for a thread's workload.
|
protected void |
setCurrentKey(int n)
Sets the current key for a thread's workload.
|
protected void |
setCurrentNumPseudoRandomKeys(long i)
Sets current number of pseudo-random keys generated by this thread.
|
protected void |
setCurrentSequenceNumber(long i)
Sets current sequence number for pseudo-random ops.
|
protected void |
setHistogram(HistogramStats h)
Sets the per-thread cache histogram instance.
|
protected void |
setKeyCount(int n)
Sets the key count for a thread's workload.
|
protected void |
setKeyType(String t)
Sets the key type for a thread's workload.
|
protected void |
setLastTaskTerminatorTime(long t)
Sets the last task terminator time for a thread's workload.
|
protected void |
setLastWarmupTerminatorTime(long t)
Sets the last warmup terminator time for a thread's workload.
|
protected void |
setNumPseudoRandomKeys(long i)
Sets the desired number of pseudo-random keys for this thread.
|
protected void |
setStartingSequenceNumber(long i)
Sets the starting sequence number for pseudo-random unique keys
|
protected void |
setStartTime(long t)
Sets the start time for a thread's workload.
|
protected void |
setStatistics(CachePerfStats stats)
Sets the per-thread cache performance statistics instance.
|
protected void |
setTxMgr(com.gemstone.gemfire.cache.CacheTransactionManager tm)
Sets the per-thread CacheTransactionManager instance
|
protected void |
setWarmedUp(boolean b)
Sets whether the thread is warmed up.
|
protected void |
setWarmUpCount(int i)
Sets the number of iterations executed during warmup.
|
protected void |
setWarmUpTime(long i)
Sets the time passed during warmup.
|
static void |
shutDownDataHostTask()
TASK to shut down a datahost.
|
static void |
signalTask()
TASK to signal that an event has occurred.
|
static void |
sleepTask() |
static void |
sleepTaskWithTrim() |
static void |
startGatewayHubTask()
TASK to start a gateway hub.
|
static void |
startJProbeTask() |
static void |
statArchiverTask()
Serves as the stat archiver for statless clients.
|
static void |
stopGatewayHubTask()
TASK to stop a gateway hub.
|
static void |
stopGatewayReceiverTask()
Stop gateway receivers
|
static void |
stopGatewaySenderTask()
Stop gateway senders
|
static void |
stopJProbeTask() |
static void |
stopOtherVMs()
TASK to stop all other vms, then restart them
|
protected int |
sttgid()
Gets the client's hydra site-specific task threadgroup id.
|
protected void |
sync()
Synchronizes clients across vms before they start their timing run on a
task.
|
protected TestConfig |
tc()
Gets the test config.
|
protected void |
terminateBatch() |
protected void |
terminateTask() |
protected void |
terminateWarmup() |
protected int |
tgid()
Gets the client's hydra threadgroup id.
|
protected int |
tid()
Gets the client's hydra thread id.
|
static void |
timedOpenAccessorCacheTask()
TASK to hook an accessor vm to the cache and measure the time.
|
static void |
timedOpenCacheTask()
TASK to hook a vm to the cache and measure the time.
|
static void |
timedOpenDataStoreCacheTask()
TASK to hook a datastore vm to the cache and measure the time.
|
protected boolean |
timeToExecuteBatchTerminator() |
protected boolean |
timeToExecuteTaskTerminator() |
protected boolean |
timeToExecuteWarmupTerminator() |
protected int |
ttgid()
Gets the client's hydra task threadgroup id.
|
static void |
updateDataTask()
TASK to update existing
UpdatableObjects by doing a get
on the object, invoking the update method on it, then putting it back. |
protected void |
updateHydraThreadLocals() |
void |
validate(int index,
Object obj)
Validates that an indexed object has the right content.
|
static void |
validateExpectedMembersTask()
TASK to validate that the expected number of members has joined the
distributed system.
|
static void |
validateMaxKeysRegionEntriesTask()
CLOSETASK to validate that the region entry count is equals to the maximum
number of keys in the region.
|
protected static final int DATASTORECACHEOPENS
protected static final int ACCESSORCACHEOPENS
protected static final int CACHEOPENS
protected static final int CREATES
protected static final int CREATEKEYS
protected static final int PUTS
protected static final int GETS
protected static final int PUTSCOMPARISON
protected static final int GETSCOMPARISON
protected static final int DESTROYS
protected static final int CREATEGETS
protected static final int PUTGETS
protected static final int USECASE12_UPDATES
protected static final int COMBINEDPUTGETS
protected static final int REGISTERINTERESTS
protected static final int OPS
protected static final int CONNECTS
protected static final int QUERIES
protected static final int LOCKS
protected static final int UPDATES
protected static final int EXTRA_PUTS
protected static final int EXTRA_GETS
protected static final int SLEEP
protected static final String OPS_NAME
protected static final String DATASTORECACHEOPENS_NAME
protected static final String ACCESSORCACHEOPENS_NAME
protected static final String CACHEOPENS_NAME
protected static final String SLEEP_NAME
protected static final String CREATES_NAME
protected static final String CREATEKEYS_NAME
protected static final String PUTS_NAME
protected static final String GETS_NAME
protected static final String PUTSCOMPARISON_NAME
protected static final String GETSCOMPARISON_NAME
protected static final String DESTROYS_NAME
protected static final String CREATEGETS_NAME
protected static final String PUTGETS_NAME
protected static final String USECASE12_UPDATES_NAME
protected static final String COMBINEDPUTGETS_NAME
protected static final String REGISTERINTERESTS_NAME
protected static final String CONNECTS_NAME
protected static final String QUERIES_NAME
protected static final String LOCKS_NAME
protected static final String UPDATES_NAME
protected static final String EXTRA_PUTS_NAME
protected static final String EXTRA_GETS_NAME
public int trimInterval
public int jid
public int tid
public int tgid
public int ttgid
public int sttgid
public int numWanSites
public int numThreads
public int iterationsSinceTxEnd
public List interestListBatch
public int batchCount
public long batchStartTime
public boolean hadFullSizeTx
public int trimIterations
public int workIterations
public int numOperations
public int batchSize
public int trimSeconds
public int workSeconds
public int batchSeconds
public int syncSleepMs
public int txSize
public int commitPercentage
public int keyAllocation
public int keyAllocationChunkSize
public int maxKeys
public int optimizationCount
public boolean isMainWorkload
public boolean allowNulls
public boolean validateObjects
public boolean invalidateAfterGet
public boolean invalidateLocally
public boolean destroyAfterGet
public boolean destroyLocally
public boolean sleepBeforeOp
public boolean useTransactions
public boolean allowConflicts
public boolean registerDurableInterest
public Method batchTerminator
public Method warmupTerminator
public Method taskTerminator
public Object[] terminatorArgs
public CachePerfPrms.Frequency warmupTerminatorFrequency
public CachePerfPrms.Frequency taskTerminatorFrequency
public TestTask task
public CachePerfStats statistics
public HistogramStats histogram
public Map trimIntervals
public DistCache cache
public com.gemstone.gemfire.cache.CacheTransactionManager tm
public GsRandom rng
public Random keyGenerator
public boolean warmedUp
public int warmupCount
public long warmupTime
public int count
public long startTime
public int keyCount
public int currentKey
public String keyType
public long lastWarmupTerminatorTime
public long lastTaskTerminatorTime
public long numPseudoRandomKeys
public long currentSequenceNumber
public long currentNumPseudoRandomKeys
protected String nameFor(int name)
public static void createAndStartLocatorTask()
public static void restartLocatorTask()
public static void createCacheTask()
protected void createCache()
public static void createPoolTask()
public static void openCacheTask()
public static void assignBucketsTask()
throws InterruptedException
InterruptedExceptionprotected void assignBuckets()
throws InterruptedException
InterruptedExceptionpublic static void compactionTask()
public static void connectTask()
public static void disconnectTask()
public static void bounceTask()
throws ClientVmNotFoundException
CachePerfPrms.clientNameToBounce, sleeps CachePerfPrms.sleepMs, then synchronously stops the VM using a nice exit,
or a mean kill if CachePerfPrms.useMeanKill is true.
The VM is restarted after CachePerfPrms.restartWaitSec seconds.
Set this to -1 to skip the restart altogether.
The task does not return until the restart is complete. It also waits
for partitioned region redundancy recovery if #waitForRecovery is true. In that case, the same VM must not be
bounced until it has signalled recovery complete.
This task can be optionally terminated after a fixed number of executions
by setting CachePerfPrms.maxExecutions to a positive number. When
this is reached, it sends a signal that other tasks can optionally detect
and use to terminate.
ClientVmNotFoundExceptionpublic static void restartTask()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void shutDownDataHostTask()
public static void restartDataHostTask()
public static void addDataHostTask()
throws InterruptedException
InterruptedExceptionpublic static void rebalanceTask()
throws InterruptedException
InterruptedExceptionprotected void rebalance()
throws InterruptedException
InterruptedExceptionpublic static void validateExpectedMembersTask()
public static void timedOpenCacheTask()
public static void timedOpenDataStoreCacheTask()
public static void timedOpenAccessorCacheTask()
public static void createGatewayHubTask()
public static void addGatewaysTask()
public static void addWBCLGatewayTask()
public static void startGatewayHubTask()
public static void stopGatewayHubTask()
public static void createGatewaySenderIdsTask()
ConfigPrms.gatewaySenderConfig.public static void initGatewaySenderTask()
ConfigPrms.gatewaySenderConfig.public static void initGatewayReceiverTask()
ConfigPrms#GatewayReceiverConfig.public static void stopGatewaySenderTask()
public static void stopGatewayReceiverTask()
public static void closeCacheTask()
protected void closeCache()
public static void openStatisticsTask()
public static void closeStatisticsTask()
protected void closeStatistics()
public static void createDataTask()
CachePerfPrms.objectType.
Each client puts a new object at a new key.protected void createData()
protected void create(int i)
public static void createAllDataTask()
#bulkOpMapSize objects of type CachePerfPrms.objectType.public static void createKeysTask()
CachePerfPrms.objectType.
Each client puts a null object at a new key.public static void createEntryMapTask()
CachePerfPrms.objectType. Each client puts a new object
at a new key. Used by putAllEntryMapTask().public static void putAllEntryMapTask()
createEntryMapTask().public static void putAllDataTask()
#bulkOpMapSize objects of type CachePerfPrms.objectType.public static void getAllDataTask()
#bulkOpMapSize objects of type CachePerfPrms.objectType.public static void putExtraDataTask()
public static void putDataTask()
protected void put(int i)
public static void updateDataTask()
UpdatableObjects by doing a get
on the object, invoking the update method on it, then putting it back.HydraConfigException - if the object is not updatableHydraRuntimeException - if the key is not createdpublic static void getExtraDataTask()
public static void getDataTask()
protected void getData()
protected void get(int i)
public static void mixCreateGetDataTask()
public static void mixPutGetDataTask()
public static void combinePutGetDataTask()
public static void getRecentKeyDataTask()
public static void putDataComparisonTask()
public static void getDataComparisonTask()
public static void readyForEventsTask()
public static void registerInterestTask()
CachePerfPrms.interestBatchSize.protected void registerInterest(int i,
int interestBatchSize)
protected void registerInterest(Object key, int interestBatchSize)
public static void registerInterestRegexTask()
CachePerfPrms.keyType BatchString. The number
of keys registered is BatchStringPrms.batchSize. The
specific keys are those whose batch prefix equals the client tid modulo the
number of batches. Requires that the batch size evenly divides CachePerfPrms.maxKeys.public static void registerInterestRegexAllTask()
public static void cycleRegisterInterestRegexTask()
public static void destroyDataTask()
protected void destroyData()
protected void destroy(int i)
public static void signalTask()
public static void resetPseudoRandomUniqueKeysTask()
public static void indexDataTask()
CachePerfPrms.queryIndex and CachePerfPrms.queryFromClause.protected void indexData()
public static void queryRegionDataTask()
CachePerfPrms.query using region query.protected void queryRegionData()
protected void queryRegion(com.gemstone.gemfire.cache.Region region,
String queryPredicate)
public static void queryRangeRegionDataTask()
CachePerfPrms.query using region query
over a randomized range of size CachePerfPrms.queryRangeSize.protected void queryRangeRegionData()
protected void queryRangeRegion(com.gemstone.gemfire.cache.Region region,
String queryPredicate)
public static void queryDataTask()
CachePerfPrms.query using the query
service.protected void queryData()
protected void query(com.gemstone.gemfire.cache.query.Query query)
protected String getResultString(com.gemstone.gemfire.cache.query.SelectResults results)
public static void statArchiverTask()
TaskSyncBlackboard.ops and TaskSyncBlackboard.opTime, which are assumed to be written by the
stateless clients. Relies on the usual terminators.public static void cycleDistributedSystemConnectionOnlyTask()
throws com.gemstone.gemfire.cache.CacheException
statArchiverTask(). Writes the values of
TaskSyncBlackboard.ops and TaskSyncBlackboard.opTime,
which are needed by the stat archiver task. Goes to great pains to avoid
logging overhead by minimal use of helper classes.com.gemstone.gemfire.cache.CacheExceptionpublic static void cycleDistributedSystemConnectionTask()
throws com.gemstone.gemfire.cache.CacheException
ConfigPrms.cacheConfig and ConfigPrms.regionConfig,
sidestepping the distcache framework altogether. Cannot be used with other
task methods in this class, except for statArchiverTask().
Writes the values of TaskSyncBlackboard.ops and TaskSyncBlackboard.opTime, which are needed by the stat archiver task.
Goes to great pains to avoid logging overhead by minimal use of helper
classes.com.gemstone.gemfire.cache.CacheExceptionpublic static void cyclePoolAndRegionTask()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic static void cyclePoolTask()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic static void cycleDurableClientTask()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionpublic static void putDataAndSyncTask()
throws InterruptedException
InterruptedExceptionpublic static void putDataGatewayTask()
public static void putDataGWSenderTask()
public static void cycleGatewayHubConnectionTask()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic static void cycleLockTask()
public static void reportTrimIntervalsTask()
public static void reportExtendedTrimIntervalsTask()
public static void validateMaxKeysRegionEntriesTask()
public static void doGC()
throws com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.CacheExceptionpublic void processNullValue(Object key)
protected int getNextKey()
protected int getRecentKey()
protected boolean executeBatchTerminator()
protected boolean timeToExecuteBatchTerminator()
protected void terminateBatch()
protected void executeWarmupTerminator()
protected boolean timeToExecuteWarmupTerminator()
protected void terminateWarmup()
protected void executeTaskTerminator()
protected boolean timeToExecuteTaskTerminator()
protected void terminateTask()
protected boolean checkFrequency(long lastCheckTime,
CachePerfPrms.Frequency f)
public static void stopOtherVMs()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionprotected void cacheStartTrim(Map intervals, int name)
reportTrimIntervalsTask() to report cached trim intervals. This
method can be invoked multiple times, but only the latest time will be
cached.protected void cacheEndTrim(Map intervals, int name)
reportTrimIntervalsTask() to report cached trim intervals. This
method can be invoked multiple times, but only the latest time will be
cached.protected TrimInterval getTrimInterval(Map intervals, int name)
protected void sync()
TaskSyncBlackboard.public static void sleepTask()
public static void dumpHeapTask()
public static void sleepTaskWithTrim()
public static void clearTask()
public static void startJProbeTask()
public static void stopJProbeTask()
public void validate(int index,
Object obj)
protected void initialize()
protected void initialize(int trimInterval)
protected void initLocalVariables(int trimInterval)
protected void initBatchVariables()
protected void initLocalParameters()
protected void initHydraThreadLocals()
protected void resetHydraThreadLocals(boolean resetKeys)
protected void updateHydraThreadLocals()
protected TestTask getTask()
protected CachePerfStats getStatistics()
protected void setStatistics(CachePerfStats stats)
protected HistogramStats getHistogram()
protected void setHistogram(HistogramStats h)
protected Map getTrimIntervals()
protected DistCache getCache()
protected void setCache(DistCache c)
protected com.gemstone.gemfire.cache.CacheTransactionManager getTxMgr()
protected void setTxMgr(com.gemstone.gemfire.cache.CacheTransactionManager tm)
protected boolean getWarmedUp()
protected void setWarmedUp(boolean b)
protected int getWarmUpCount()
protected void setWarmUpCount(int i)
protected long getWarmUpTime()
protected void setWarmUpTime(long i)
protected int getCount()
protected void setCount(int n)
protected int getKeyCount()
protected void setKeyCount(int n)
protected int getCurrentKey()
protected void setCurrentKey(int n)
protected String getKeyType()
protected void setKeyType(String t)
protected long getLastWarmupTerminatorTime()
protected void setLastWarmupTerminatorTime(long t)
protected long getLastTaskTerminatorTime()
protected void setLastTaskTerminatorTime(long t)
protected long getStartTime()
protected void setStartTime(long t)
protected GsRandom getRNG()
protected Random getKeyGenerator()
protected long getStartingSequenceNumber()
protected void setStartingSequenceNumber(long i)
protected long getNumPseudoRandomKeys()
protected void setNumPseudoRandomKeys(long i)
protected long getCurrentSequenceNumber()
protected void setCurrentSequenceNumber(long i)
protected long getCurrentNumPseudoRandomKeys()
protected void setCurrentNumPseudoRandomKeys(long i)
protected int jid()
protected int tid()
protected int tgid()
protected int ttgid()
protected int sttgid()
Assumes client names are of the form *_site_*, where site is the site
number. If no site is found, then this method returns the ttgid.
protected int numWanSites()
Reads CachePerfPrms.numWanSites. If that returns 0 (not set),
assumes client names are of the form *_site_*, where site is the site
number. If no site is found, then this method returns 1.
public static int numThreads()
protected static com.gemstone.gemfire.LogWriter log()
protected TestConfig tc()
protected void checkForTxEnd(int terminationType)
terminationType - the type of termination to handle.protected void begin()
protected void endTx()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.