public class CachePerfPrms extends BasePrms
| Modifier and Type | Class and Description |
|---|---|
static class |
CachePerfPrms.Frequency |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Long |
allowConflicts
(boolean)
Whether to allow commitConflictException (true), or to rethrow the
exception if it occurs (false).
|
static java.lang.Long |
allowNulls
(boolean)
Whether to allow gets to return null values without causing test failure.
|
static java.lang.Long |
batchSeconds
(int)
The number of seconds in each batch for the current task
Defaults to -1 (not usable).
|
static java.lang.Long |
batchSize
(int)
The number of iterations in each batch for the current task.
|
static java.lang.Long |
batchTerminatorClass
(String)
The class name to invoke at the termination of each batch.
|
static java.lang.Long |
batchTerminatorMethod
(String)
The method to invoke to check for batch termination.
|
static java.lang.Long |
bulkOpMapSize
(int)
The number of entries in the bulk op map.
|
static java.lang.Long |
clientNameToBounce
(String)
Client name of VM to bounce when executing
#bounceTask. |
static java.lang.Long |
commitPercentage
(int)
The percentage of transactions that should be committed (vs.
|
static java.lang.Long |
destroyAfterGet
(boolean)
Whether to destroy objects after gets.
|
static java.lang.Long |
destroyLocally
(boolean)
Whether, when
destroyAfterGet is true, to destroy locally
rather than throughout the distributed system. |
static int |
DISJOINT_AS_POSSIBLE |
static java.lang.Long |
dummyBulkOps
(boolean)
Whether to dummy up each bulk op with regular ops.
|
static java.lang.Long |
gatewayQueueEntries
(int)
The number of keys to put into a gateway queue.
|
static java.lang.Long |
hitPercentage
(int)
The percentage of operations that should be hits.
|
static java.lang.Long |
hitsAndMisses
(int)
Indicates if this test does a mixture of hits & misses
Currently only supported at TestConfig level for
C cache performance tests.
|
static java.lang.Long |
interestBatchSize
(int)
The number of keys to register interest in at one time.
|
static java.lang.Long |
invalidateAfterGet
(boolean)
Whether to invalidate objects after gets.
|
static java.lang.Long |
invalidateLocally
(boolean)
Whether, when
invalidateAfterGet is true, to destroy locally
rather than throughout the distributed system. |
static java.lang.Long |
isMainWorkload
(boolean)
Whether this task is the main workload.
|
static java.lang.Long |
keepDurableInterest
(boolean)
Whether or not to keep a durable client connection interest list alive
when the durable client disconnects.
|
static java.lang.Long |
keyAllocation
(String)
The method to use when allocating keys to threads for cache operations.
|
static java.lang.Long |
keyAllocationChunkSize
(int)
The size of each "chunk" in a chunked
keyAllocation. |
static java.lang.Long |
keyPercentage
(int)
A percentage of maxKeys.
|
static java.lang.Long |
keyType
(String)
Type of keys to create, as a fully qualified classname.
|
static java.lang.Long |
logInterestRegex
(boolean)
Whether to log regular expressions when registering interest in them.
|
static java.lang.Long |
LRUEvictions
(int)
The minimum number of LRU evictions required for termination of warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
LRUEvictionsMaxWaitSec
(int)
The maximum amount of time to wait for LRU evictions to terminate warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
LRUEvictionsMinWaitSec
(int)
The minimum amount of time to wait for LRU evictions to terminate warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
maxExecutions
(int)
The number of executions to carry out.
|
static java.lang.Long |
maxKeys
(int)
The maximum number of keys used in the test, where
maxKeys-1
is the maximum key. |
static java.lang.Long |
maxRecentKeys
(int)
The maximum number of recent keys to consider.
|
static java.lang.Long |
numDestroys
(int)
The minimum number of destroys required for termination of warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
numDestroysMaxWaitSec
(int)
The maximum amount of time to wait for destroys to terminate warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
numDestroysMinWaitSec
(int)
The minimum amount of time to wait for destroys to terminate warmup,
or whatever else test code may choose to use this for.
|
static java.lang.Long |
numOperations
(int)
The number of operations used in
Terminators.terminateOnNumOperations(cacheperf.CachePerfClient). |
static java.lang.Long |
numUpdates
(int)
Number of updates to do on the same object.
|
static java.lang.Long |
numWanSites
(int)
The number of WAN sites in the test.
|
static java.lang.Long |
objectType
(String)
Type of objects to create, as a fully qualified classname.
|
static java.lang.Long |
optimizationCount
(int)
Whether, and how much, to optimize loops that support optimization.
|
static int |
OWN_KEY |
static int |
OWN_KEYS |
static int |
OWN_KEYS_CHUNKED |
static int |
OWN_KEYS_CHUNKED_RANDOM_WRAP |
static int |
OWN_KEYS_RANDOM_WRAP |
static int |
OWN_KEYS_WRAP |
static int |
PER_ITERATION |
static int |
PER_SECOND |
static int |
PER_TASK |
static int |
PSEUDO_RANDOM_UNIQUE |
static java.lang.Long |
putPercentage
(int)
The percentage of operations that should be puts, for use with tasks that
mix operations, one of which is put.
|
static java.lang.Long |
query
(String)
The query string.
|
static java.lang.Long |
queryFromClause
(String)
The query from caluse.
|
static java.lang.Long |
queryIndex
(String)
The query index string.
|
static java.lang.Long |
queryRangeMax
(long)
The maximum random value for a query range.
|
static java.lang.Long |
queryRangeMin
(long)
The minimum random value for a query range.
|
static java.lang.Long |
queryRangeSize
(long)
The size of a query range.
|
static java.lang.Long |
recentKeysPercentage
(int)
The percentage (roughly) of operations that will attempt to use a recently
used key, rather than obtaining a key with the current key settings (ownKeys,
etc.).
|
static java.lang.Long |
registerDurableInterest
(boolean)
Whether or not to register durable (rather than non-durable) interest.
|
static java.lang.Long |
resetKeysAfterTaskEnds
(boolean)
Whether to reset the current key and key count after the task has stopped
being scheduled.
|
static java.lang.Long |
resetKeysBeforeTaskStarts
(boolean)
Whether to reset the current key and key count before the task has started
being scheduled.
|
static java.lang.Long |
restartVMs
(boolean)
Whether or not to restart VMs after stopping
|
static java.lang.Long |
restartWaitSec
(int)
The number of seconds to wait before restarting a VM that executes a
CachePerfClient.bounceTask(). |
static int |
SAME_KEY |
static int |
SAME_KEYS |
static int |
SAME_KEYS_RANDOM_WRAP |
static int |
SAME_KEYS_WRAP |
static int |
SCRAMBLED_ZIPFIAN |
static java.lang.Long |
sleepBeforeOp
(boolean)
Whether to sleep before doing an operation.
|
static java.lang.Long |
sleepMs
(int)
The time to sleep in milliseconds before doing an operation.
|
static java.lang.Long |
sleepOpCount
(int)
The number of operations to do after sleeping for {link #sleepMs}.
|
static java.lang.Long |
syncSleepMs
(int)
The number of milliseconds to sleep before syncing.
|
static java.lang.Long |
taskTerminatorClass
(String)
The class name to invoke to check for task termination.
|
static java.lang.Long |
taskTerminatorFrequency
(String)
The frequency with which to check for task termination during a task.
|
static java.lang.Long |
taskTerminatorMethod
(String)
The method to invoke to check for task termination.
|
static java.lang.Long |
trimIterations
(int)
The number of warmup iterations to do for the current task.
|
static java.lang.Long |
trimSeconds
(int)
The number of warmup iterations to do for the current task.
|
static java.lang.Long |
txSize
(int)
The number of iterations in each transaction, on a per-thread basis.
|
static java.lang.Long |
useMeanKill
(boolean)
Whether to use a mean kill when executing
CachePerfClient.bounceTask(). |
static java.lang.Long |
useShutDownAllMembers
(boolean)
Whether to use shutDownAllMembers to stop vms (for use with disk recovery)
Defaults to false.
|
static java.lang.Long |
useTransactions
(boolean)
Whether to encase operations into a transaction.
|
static java.lang.Long |
validateObjects
(boolean)
Whether to validate objects along the way, skipping over null values.
|
static java.lang.Long |
waitForRecovery
(boolean)
Whether to wait for partitioned region redundancy recovery when
executing
CachePerfClient.bounceTask(). |
static java.lang.Long |
waitForTrimSignal
(boolean)
Whether to wait for the trim signal before proceeding.
|
static java.lang.Long |
warmupTerminatorClass
(String)
The class name to invoke to check for warmup termination.
|
static java.lang.Long |
warmupTerminatorFrequency
(String)
The frequency with which to check for warmup termination during a task.
|
static java.lang.Long |
warmupTerminatorMethod
(String)
The method to invoke to check for warmup termination.
|
static java.lang.Long |
workIterations
(int)
The number of timing iterations to do for the current task.
|
static java.lang.Long |
workSeconds
(int)
The number of timing seconds to do for the current task.
|
static int |
ZIPFIAN |
| Constructor and Description |
|---|
CachePerfPrms() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowConflicts() |
static boolean |
allowNulls() |
static boolean |
destroyAfterGet() |
static boolean |
destroyLocally() |
static int |
getBatchSeconds() |
static int |
getBatchSize() |
static java.lang.String |
getBatchTerminatorClass() |
static java.lang.String |
getBatchTerminatorMethod() |
static int |
getBulkOpMapSize() |
static java.lang.String |
getClientNameToBounce() |
static int |
getCommitPercentage() |
static boolean |
getDummyBulkOps() |
static int |
getGatewayQueueEntries() |
static int |
getInterestBatchSize() |
static boolean |
getKeepDurableInterest() |
static int |
getKeyAllocation() |
static int |
getKeyAllocationChunkSize() |
static int |
getKeyPercentage() |
static java.lang.String |
getKeyType() |
static int |
getMaxExecutions() |
static int |
getMaxKeys() |
static int |
getNumOperations() |
static int |
getNumUpdates() |
static int |
getNumWanSites() |
static java.lang.String |
getObjectType() |
static int |
getOptimizationCount() |
static int |
getPutPercentage() |
static java.lang.String |
getQuery() |
static java.lang.String |
getQueryFromClause() |
static java.lang.String |
getQueryIndex() |
static long |
getQueryRangeMax() |
static long |
getQueryRangeMin() |
static long |
getQueryRangeSize() |
static int |
getRestartWaitSec() |
static int |
getSleepMs() |
static int |
getSleepOpCount() |
static java.lang.String |
getTaskTerminatorClass() |
static CachePerfPrms.Frequency |
getTaskTerminatorFrequency() |
static java.lang.String |
getTaskTerminatorMethod() |
static int |
getTrimIterations() |
static int |
getTrimSeconds() |
static int |
getTxSize() |
static java.lang.String |
getWarmupTerminatorClass() |
static CachePerfPrms.Frequency |
getWarmupTerminatorFrequency() |
static java.lang.String |
getWarmupTerminatorMethod() |
static int |
getWorkIterations() |
static int |
getWorkSeconds() |
static boolean |
invalidateAfterGet() |
static boolean |
invalidateLocally() |
static boolean |
isMainWorkload() |
static boolean |
logInterestRegex() |
static int |
LRUEvictions() |
static int |
LRUEvictionsMaxWaitSec() |
static int |
LRUEvictionsMinWaitSec() |
static void |
main(java.lang.String[] args) |
static int |
maxRecentKeys() |
static int |
numDestroys() |
static int |
numDestroysMaxWaitSec() |
static int |
numDestroysMinWaitSec() |
static int |
recentKeysPercentage() |
static boolean |
registerDurableInterest() |
static boolean |
resetKeysAfterTaskEnds(TestTask task) |
static boolean |
resetKeysBeforeTaskStarts(TestTask task) |
static boolean |
restartVMs() |
static boolean |
sleepBeforeOp() |
static int |
syncSleepMs() |
static boolean |
useMeanKill() |
static boolean |
useShutDownAllMembers() |
static boolean |
useTransactions() |
static boolean |
validateObjects() |
static boolean |
waitForRecovery() |
static boolean |
waitForTrimSignal() |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static java.lang.Long isMainWorkload
Transparently shadows the trim interval and statistics for the task as "ops", without adding another call to System.currentTimeMillis().
public static java.lang.Long trimSeconds
public static java.lang.Long workSeconds
public static java.lang.Long batchSeconds
public static java.lang.Long trimIterations
public static java.lang.Long workIterations
public static java.lang.Long batchSize
public static java.lang.Long txSize
The batch terminator for a transactional task must have a large enough granularity to allow the task to perform at least txSize operations in each complete batch. Otherwise it is a configuration error. Fewer than txSize operations are allowed in a batch that hits task termination before txSize operations are performed.
public static java.lang.Long numOperations
Terminators.terminateOnNumOperations(cacheperf.CachePerfClient).
Not for use with oneof or range.public static java.lang.Long keyType
String.
Not for use with ONEOF or RANGE or as a task parameter.ObjectHelperpublic static java.lang.Long keyAllocation
DEFAULT_KEY_ALLOCATION.public static final int SAME_KEY
public static final int SAME_KEYS
public static final int SAME_KEYS_WRAP
public static final int SAME_KEYS_RANDOM_WRAP
public static final int OWN_KEY
public static final int OWN_KEYS
public static final int OWN_KEYS_WRAP
public static final int OWN_KEYS_RANDOM_WRAP
public static final int OWN_KEYS_CHUNKED
public static final int OWN_KEYS_CHUNKED_RANDOM_WRAP
public static final int DISJOINT_AS_POSSIBLE
public static final int PSEUDO_RANDOM_UNIQUE
public static final int ZIPFIAN
public static final int SCRAMBLED_ZIPFIAN
public static java.lang.Long keyAllocationChunkSize
keyAllocation.
Defaults to 1. Not for use with oneof or range.public static java.lang.Long maxKeys
maxKeys-1
is the maximum key. Required parameter. Not intended for use
with oneof or range.public static java.lang.Long resetKeysAfterTaskEnds
public static java.lang.Long resetKeysBeforeTaskStarts
public static java.lang.Long objectType
ObjectHelper. Defaults to
SizedString with the default size.ObjectHelperpublic static java.lang.Long allowNulls
public static java.lang.Long validateObjects
allowNulls to configure handling of nulls.public static java.lang.Long invalidateAfterGet
invalidateLocally. Not for use with oneof or range.
Not for use with oneof or range.public static java.lang.Long invalidateLocally
invalidateAfterGet is true, to destroy locally
rather than throughout the distributed system. Defaults to true.
Not for use with oneof or range.public static java.lang.Long destroyAfterGet
destroyLocally. Not for use with oneof or range.public static java.lang.Long destroyLocally
destroyAfterGet is true, to destroy locally
rather than throughout the distributed system. Defaults to true.
Not for use with oneof or range.public static java.lang.Long sleepBeforeOp
public static java.lang.Long sleepMs
public static java.lang.Long sleepOpCount
public static java.lang.Long gatewayQueueEntries
public static java.lang.Long bulkOpMapSize
public static java.lang.Long dummyBulkOps
public static java.lang.Long interestBatchSize
public static java.lang.Long logInterestRegex
public static java.lang.Long registerDurableInterest
public static java.lang.Long keepDurableInterest
public static java.lang.Long restartVMs
public static java.lang.Long batchTerminatorClass
DEFAULT_CLASS.
See also batchTerminatorMethod.public static java.lang.Long batchTerminatorMethod
batchTerminatorClass.public static java.lang.Long warmupTerminatorClass
DEFAULT_CLASS.
See also warmupTerminatorMethod.public static java.lang.Long warmupTerminatorMethod
warmupTerminatorClass.public static java.lang.Long warmupTerminatorFrequency
public static java.lang.Long taskTerminatorClass
DEFAULT_CLASS.
See also taskTerminatorMethod.public static java.lang.Long taskTerminatorMethod
taskTerminatorClass.public static java.lang.Long taskTerminatorFrequency
public static final int PER_TASK
public static final int PER_ITERATION
public static final int PER_SECOND
public static java.lang.Long hitsAndMisses
public static java.lang.Long hitPercentage
public static java.lang.Long putPercentage
public static java.lang.Long LRUEvictions
public static java.lang.Long LRUEvictionsMinWaitSec
LRUEvictionspublic static java.lang.Long LRUEvictionsMaxWaitSec
LRUEvictionspublic static java.lang.Long numDestroys
public static java.lang.Long numDestroysMinWaitSec
numDestroyspublic static java.lang.Long numDestroysMaxWaitSec
numDestroyspublic static java.lang.Long numUpdates
Used by CachePerfClient.updateDataTask(), for example.
public static java.lang.Long recentKeysPercentage
public static java.lang.Long maxRecentKeys
public static java.lang.Long syncSleepMs
public static java.lang.Long useTransactions
public static java.lang.Long allowConflicts
public static java.lang.Long commitPercentage
public static java.lang.Long maxExecutions
This parameter is useful when a task needs to do something specific on its last scheduled execution (which cannot be done using maxTimesToRun since there is no way for the task to know it is the final execution).
CachePerfClient.bounceTask() uses this parameter to
execute a fixed number of times then send a signal to clients executing
other tasks so that they all terminate together.
public static java.lang.Long restartWaitSec
CachePerfClient.bounceTask(). Defaults to 0.public static java.lang.Long useMeanKill
CachePerfClient.bounceTask(). Defaults to false.public static java.lang.Long clientNameToBounce
#bounceTask. Defaults to null.public static java.lang.Long waitForRecovery
CachePerfClient.bounceTask(). Defaults to false.
NOTE: Requires ResourceObservers to be installed on datahosts.
public static java.lang.Long waitForTrimSignal
public static java.lang.Long useShutDownAllMembers
public static java.lang.Long query
public static java.lang.Long queryIndex
public static java.lang.Long queryFromClause
public static java.lang.Long queryRangeMin
public static java.lang.Long queryRangeMax
public static java.lang.Long queryRangeSize
public static java.lang.Long numWanSites
CachePerfClient.numWanSites. That method
which assumes a certain format for client names.public static java.lang.Long keyPercentage
public static java.lang.Long optimizationCount
public static boolean isMainWorkload()
public static int getTrimSeconds()
public static int getWorkSeconds()
public static int getBatchSeconds()
public static int getTrimIterations()
public static int getWorkIterations()
public static int getBatchSize()
public static int getTxSize()
public static int getNumOperations()
public static java.lang.String getKeyType()
public static int getKeyAllocation()
public static int getKeyAllocationChunkSize()
public static int getMaxKeys()
public static boolean resetKeysAfterTaskEnds(TestTask task)
public static boolean resetKeysBeforeTaskStarts(TestTask task)
public static java.lang.String getObjectType()
public static boolean allowNulls()
public static boolean validateObjects()
public static boolean invalidateAfterGet()
public static boolean invalidateLocally()
public static boolean destroyAfterGet()
public static boolean destroyLocally()
public static boolean sleepBeforeOp()
public static int getSleepMs()
public static int getSleepOpCount()
public static int getGatewayQueueEntries()
public static int getBulkOpMapSize()
public static boolean getDummyBulkOps()
public static int getInterestBatchSize()
public static boolean logInterestRegex()
public static boolean registerDurableInterest()
public static boolean getKeepDurableInterest()
public static boolean restartVMs()
public static java.lang.String getBatchTerminatorClass()
public static java.lang.String getBatchTerminatorMethod()
public static java.lang.String getWarmupTerminatorClass()
public static java.lang.String getWarmupTerminatorMethod()
public static CachePerfPrms.Frequency getWarmupTerminatorFrequency()
public static java.lang.String getTaskTerminatorClass()
public static java.lang.String getTaskTerminatorMethod()
public static CachePerfPrms.Frequency getTaskTerminatorFrequency()
public static int getPutPercentage()
public static int LRUEvictions()
public static int LRUEvictionsMinWaitSec()
public static int LRUEvictionsMaxWaitSec()
public static int numDestroys()
public static int numDestroysMinWaitSec()
public static int numDestroysMaxWaitSec()
public static int getNumUpdates()
public static int recentKeysPercentage()
public static int maxRecentKeys()
public static int syncSleepMs()
public static boolean useTransactions()
public static boolean allowConflicts()
public static int getCommitPercentage()
public static int getMaxExecutions()
public static int getRestartWaitSec()
public static boolean useMeanKill()
public static java.lang.String getClientNameToBounce()
public static boolean waitForRecovery()
public static boolean waitForTrimSignal()
public static boolean useShutDownAllMembers()
public static java.lang.String getQuery()
public static java.lang.String getQueryIndex()
public static java.lang.String getQueryFromClause()
public static long getQueryRangeMin()
public static long getQueryRangeMax()
public static long getQueryRangeSize()
public static int getNumWanSites()
public static int getKeyPercentage()
public static int getOptimizationCount()
public static void main(java.lang.String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.