public class Terminators extends Object
A warmup terminator is a public static boolean method that returns true when a client thread is considered to be "warmed up". It is executed with a configurable frequency until it returns true, after which it is no longer invoked.
A task terminator is a public static boolean method that returns true
when a client thread is considered to be "done" with a task. It is
executed with a configurable frequency until it returns true, at which time
the client thread issues a StopSchedulingTaskOnClientOrder to
stop work on the task and prevent being scheduled with the task in future.
A batch terminator is a public static void method that is executed by a client thread at the end of each batch of operations.
CachePerfPrms| Constructor and Description |
|---|
Terminators() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
terminateAndSignalOnTrimSeconds(CachePerfClient c)
Returns true when a client has done the operation for
CachePerfPrms.trimSeconds seconds. |
static boolean |
terminateOnBatchSeconds(CachePerfClient c)
Returns true when a client has done the operation for
CachePerfPrms.batchSeconds seconds. |
static boolean |
terminateOnBatchSize(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.batchSize
of the operation. |
static boolean |
terminateOnGetInitialImageComplete(CachePerfClient c)
Returns true when the shared counter in
getInitialImage.InitImageBB.getInitialImagesCompleted is non-zero. |
static boolean |
terminateOnGetInitialImageInProgress(CachePerfClient c)
Returns true when the shared counter in
getInitialImage.InitImageBB.getInitialImagesInProgress is non-zero. |
static boolean |
terminateOnLRUEvictions(CachePerfClient c)
Returns true when each stat archive has done
CachePerfPrms.LRUEvictions, based on checking lruEvictions stat, and at
least CachePerfPrms.LRUEvictionsMinWaitSec has passed. |
static boolean |
terminateOnMaxKey(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.maxKeys of the
operation. |
static boolean |
terminateOnNumDestroys(CachePerfClient c)
Returns true when each stat archive has done
CachePerfPrms.numDestroys, based on checking destroys stat, and at
least CachePerfPrms.numDestroysMinWaitSec has passed. |
static boolean |
terminateOnNumOperations(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.numOperations
operations. |
static boolean |
terminateOnSignal(CachePerfClient c)
Returns true when the shared counter in
TaskSyncBlackboard.signal is non-zero. |
static boolean |
terminateOnTotalIterations(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.trimIterations
plus CachePerfPrms.workIterations of the operation. |
static boolean |
terminateOnTotalSeconds(CachePerfClient c)
Returns true when a client has done the operation for
CachePerfPrms.trimSeconds plus CachePerfPrms.workSeconds. |
static boolean |
terminateOnTrimIterations(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.trimIterations
of the operation. |
static boolean |
terminateOnTrimSeconds(CachePerfClient c)
Returns true when a client has done the operation for
CachePerfPrms.trimSeconds seconds. |
static boolean |
terminateOnWorkIterations(CachePerfClient c)
Returns true when a client has done
CachePerfPrms.workIterations
of the operation after warmup is completed. |
static boolean |
terminateOnWorkSeconds(CachePerfClient c)
Returns true when a client has done the operation for
CachePerfPrms.workSeconds seconds after warmup is completed. |
public static boolean terminateOnBatchSeconds(CachePerfClient c)
CachePerfPrms.batchSeconds seconds.public static boolean terminateOnBatchSize(CachePerfClient c)
CachePerfPrms.batchSize
of the operation.public static boolean terminateOnTrimSeconds(CachePerfClient c)
CachePerfPrms.trimSeconds seconds.public static boolean terminateAndSignalOnTrimSeconds(CachePerfClient c)
CachePerfPrms.trimSeconds seconds. Signals others using
TaskSyncBlackboard.trimSignal.public static boolean terminateOnWorkSeconds(CachePerfClient c)
CachePerfPrms.workSeconds seconds after warmup is completed.public static boolean terminateOnTotalSeconds(CachePerfClient c)
CachePerfPrms.trimSeconds plus CachePerfPrms.workSeconds.public static boolean terminateOnTrimIterations(CachePerfClient c)
CachePerfPrms.trimIterations
of the operation.public static boolean terminateOnWorkIterations(CachePerfClient c)
CachePerfPrms.workIterations
of the operation after warmup is completed.public static boolean terminateOnTotalIterations(CachePerfClient c)
CachePerfPrms.trimIterations
plus CachePerfPrms.workIterations of the operation.public static boolean terminateOnMaxKey(CachePerfClient c)
CachePerfPrms.maxKeys of the
operation.public static boolean terminateOnNumOperations(CachePerfClient c)
CachePerfPrms.numOperations
operations.public static boolean terminateOnLRUEvictions(CachePerfClient c)
CachePerfPrms.LRUEvictions, based on checking lruEvictions stat, and at
least CachePerfPrms.LRUEvictionsMinWaitSec has passed.CachePerfException - if this does not occur within
CachePerfPrms.LRUEvictionsMaxWaitSec.public static boolean terminateOnNumDestroys(CachePerfClient c)
CachePerfPrms.numDestroys, based on checking destroys stat, and at
least CachePerfPrms.numDestroysMinWaitSec has passed.CachePerfException - if this does not occur within
CachePerfPrms.numDestroysMaxWaitSec.public static boolean terminateOnSignal(CachePerfClient c)
TaskSyncBlackboard.signal is non-zero.public static boolean terminateOnGetInitialImageInProgress(CachePerfClient c)
getInitialImage.InitImageBB.getInitialImagesInProgress is non-zero.public static boolean terminateOnGetInitialImageComplete(CachePerfClient c)
getInitialImage.InitImageBB.getInitialImagesCompleted is non-zero.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.