public class ClientNameTaskScheduler extends BaseTaskScheduler
The set of client threads runs tasks concurrently, but each client thread executes each task in sequence. One client thread can get ahead of the other in its sequence.
Sample timeline with 3 clients running 3 tasks...
c1: t1---------------t2------t3------| c2: t1----t2------t3---| c3: t1---------t2---------t3----------|
Each task is executed only in VMs with the logical client names specified
for that task in the test configuration file, or, if none are specified,
in the VM for each and every logical client name defined in the file. See
ClientPrms.names for how to specify clients.
disconnect, haltIfBadResult, log, name, purpose, tasks, termination, vms| Constructor and Description |
|---|
ClientNameTaskScheduler(String name,
Vector tasks,
String purpose)
Creates a task scheduler by the given name for the purpose of executing
the given set of start or end tasks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createClients(Map cds,
Map tgs)
Asks this scheduler to create one single-threaded client vm for each
client description required by the tasks, rather than using existing
clients.
|
protected boolean |
executeTasks()
Executes the tasks using the existing clients.
|
assignTask, exceededMaxResultWaitSec, exceededMaxResultWaitSec, exceededMaxResultWaitSec, executedNormally, executedNormallyOrNoHaltOrder, 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 ClientNameTaskScheduler(String name, Vector tasks, String purpose)
name - a descriptive name of the tasks to use for loggingtasks - the tasks to be scheduledpublic void createClients(Map cds, Map tgs)
createClients in interface TaskSchedulercreateClients in class BaseTaskSchedulercds - the ClientDescription describes the client vms and threadstgs - the thread groups to map clients to.HydraTimeoutException - if the clients do not start within
Prms.maxClientStartupWaitSecprotected boolean executeTasks()
executeTasks in class BaseTaskSchedulerCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.