public interface ProcessControl
Modifier and Type | Interface and Description |
---|---|
static interface |
ProcessControl.Listener
Listener interface for receiving updates about process status.
|
static interface |
ProcessControl.ProcessReports
Interface to the information the console has about an agent and its worker
processes.
|
static class |
ProcessControl.ProcessReportsComparator
Comparator for
ProcessControl.ProcessReports that sorts according
to the agent report. |
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
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.
|
void startWorkerProcesses(GrinderProperties properties)
properties
- Properties that override the agent's local properties.void startWorkerProcessesWithDistributedFiles(Directory distributionDirectory, GrinderProperties properties) throws ConsoleException
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.distributionDirectory
- 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
.ConsoleException
- If an error occurred calculating file paths.void resetWorkerProcesses()
void stopAgentAndWorkerProcesses()
void addProcessStatusListener(ProcessControl.Listener listener)
listener
- The listener.int getNumberOfLiveAgents()
Copyright © 2000-2014. All Rights Reserved.