public abstract class ComplexTaskScheduler extends BaseTaskScheduler
TASKs that do not specify thread groups are assigned to the default group.
disconnect, haltIfBadResult, log, name, purpose, tasks, termination, vms| Constructor and Description |
|---|
ComplexTaskScheduler(String name,
Vector tasks,
String purpose,
long totalTaskTimeSec)
Creates a task scheduler by the given name for the purpose of
executing the given set of tasks.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exceededMaxResultWaitSec(long now)
True if any clients are still busy and have run out of time.
|
protected boolean |
hasTask(ClientRecord client,
long now)
returns whether the client has an eligible task
|
protected void |
initializeTaskTimes()
initializes the task start and end times
|
protected boolean |
receivedStopSchedulingOrder()
Returns true if a StopSchedulingOrder has been thrown.
|
protected void |
receiveStopSchedulingOrder()
Registers the fact that a StopSchedulingOrder has been thrown.
|
protected boolean |
schedule(ClientRecord client,
long now,
ComplexTaskScheduler ts)
Schedules the client with the task, after rechecking under synchronization
that the client is still available for scheduling.
|
protected TestTask |
selectTask(ClientRecord client,
long now)
selects the best eligible task for the client to run
|
protected boolean |
terminateScheduling(int count,
long now)
True if it is time to stop scheduling clients.
|
protected void |
waitForDynamicThreadsToFinish()
Blocks until all dynamic scheduler threads have completed.
|
assignTask, createClients, exceededMaxResultWaitSec, exceededMaxResultWaitSec, executedNormally, executedNormallyOrNoHaltOrder, executeTasks, executeTasks, fakeKillResults, getTsid, getVm, getVms, hadDynamicActionError, hadDynamicActionHang, hadFatalTaskErrorAndHaltOrder, hadStatMonitorError, initClientRuntime, initExecutionParameters, isFinished, pauseBlocking, pauseScheduling, pauseWaiting, printBlockingReport, printReport, printSchedulingReport, printWaitingReport, processDynamicActionError, reportResult, schedulerResult, setDynamicActionError, setDynamicActionHang, setStatMonitorError, setTermination, startClients, startClientsForced, stopClients, waitForClientsToFinish, waitForClientsToFinish, waitForClientToFinishpublic ComplexTaskScheduler(String name, Vector tasks, String purpose, long totalTaskTimeSec)
name - a descriptive name of the tasks to use for loggingtasks - the tasks to be scheduledtotalTaskTimeSec - total amount of time to execute tasks with
this scheduler (overrides the task control parameter
maxTimesToRun).protected void initializeTaskTimes()
protected boolean schedule(ClientRecord client, long now, ComplexTaskScheduler ts)
protected boolean hasTask(ClientRecord client, long now)
protected TestTask selectTask(ClientRecord client, long now)
protected boolean terminateScheduling(int count,
long now)
protected void waitForDynamicThreadsToFinish()
protected boolean exceededMaxResultWaitSec(long now)
exceededMaxResultWaitSec in class BaseTaskSchedulerprotected void receiveStopSchedulingOrder()
protected boolean receivedStopSchedulingOrder()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.