public class Terminators extends Object
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.
cacheperf.UseCase3Prms| Constructor and Description |
|---|
Terminators() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
terminateOnBatchSeconds(UseCase3Client c)
Returns true when a client has done the operation for
UseCase3Prms.batchSeconds seconds. |
static boolean |
terminateOnMaxKey(UseCase3Client c)
Returns true when a client has done
UseCase3Prms#maxKeys of the
operation. |
static boolean |
terminateOnSignal(UseCase3Client c)
Returns true when the shared counter in
TaskSyncBlackboard.signal is non-zero. |
static boolean |
terminateOnTotalTaskTimeSec(UseCase3Client c)
Returns true when a client has done the TASK workload for
Prms.totalTaskTimeSec. |
public static boolean terminateOnBatchSeconds(UseCase3Client c)
UseCase3Prms.batchSeconds seconds.public static boolean terminateOnTotalTaskTimeSec(UseCase3Client c)
Prms.totalTaskTimeSec.public static boolean terminateOnMaxKey(UseCase3Client c)
UseCase3Prms#maxKeys of the
operation.public static boolean terminateOnSignal(UseCase3Client c)
TaskSyncBlackboard.signal is non-zero.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.