|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.console.communication.ProcessControlImplementation
public class ProcessControlImplementation
Implementation of ProcessControl.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.grinder.console.communication.ProcessControl |
|---|
ProcessControl.Listener, ProcessControl.ProcessReports, ProcessControl.ProcessReportsComparator |
| Constructor Summary | |
|---|---|
ProcessControlImplementation(Timer timer,
ConsoleCommunication consoleCommunication,
Resources resources)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 ProcessControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||