public class ProcessControlImplementation extends Object implements ProcessControl
ProcessControl.ProcessControl.Listener, ProcessControl.ProcessReports, ProcessControl.ProcessReportsComparator| Constructor and Description |
|---|
ProcessControlImplementation(Timer timer,
ConsoleCommunication consoleCommunication,
Resources resources)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessStatusListener(ProcessControl.Listener listener)
Add a listener for process status data.
|
int |
getNumberOfLiveAgents()
How many agents are live?
|
void |
resetWorkerProcesses()
Signal the worker processes to reset.
|
void |
startWorkerProcesses(GrinderProperties properties)
Signal the worker processes to start.
|
void |
startWorkerProcessesWithDistributedFiles(Directory distributionDirectory,
GrinderProperties properties)
A variant of
ProcessControl.startWorkerProcesses(net.grinder.common.GrinderProperties) that checks the properties are
reasonable for the distribution directory, and adjusts the supplied
properties to have the appropriate relative paths. |
void |
stopAgentAndWorkerProcesses()
Signal the agent and worker processes to stop.
|
public ProcessControlImplementation(Timer timer, ConsoleCommunication consoleCommunication, Resources resources)
timer - Timer that can be used to schedule housekeeping tasks.consoleCommunication - The console communication handler.resources - Resources.public void startWorkerProcesses(GrinderProperties properties)
startWorkerProcesses in interface ProcessControlproperties - Properties that override the agent's local properties.public void startWorkerProcessesWithDistributedFiles(Directory distributionDirectory, GrinderProperties properties) throws ConsoleException
ProcessControl.startWorkerProcesses(net.grinder.common.GrinderProperties) that checks the properties are
reasonable for the distribution directory, and adjusts the supplied
properties to have the appropriate relative paths.startWorkerProcessesWithDistributedFiles in interface ProcessControldistributionDirectory - The distribution directory.properties - The properties. If the associated file is in the distribution, the
agent doesn't reload the distributed copy. However,it uses its
location to resolve any relative grinder.script path.ConsoleException - If the grinder.script property is set to a relative path
outside of the distribution directory (e.g. ../foo.py.public void resetWorkerProcesses()
resetWorkerProcesses in interface ProcessControlpublic void stopAgentAndWorkerProcesses()
stopAgentAndWorkerProcesses in interface ProcessControlpublic void addProcessStatusListener(ProcessControl.Listener listener)
addProcessStatusListener in interface ProcessControllistener - The listener.public int getNumberOfLiveAgents()
getNumberOfLiveAgents in interface ProcessControlCopyright © 2000-2014. All Rights Reserved.