|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner<SERVER,PARAMS> cz.cuni.amis.pogamut.ut2004.utils.UT2004AnalyzerRunner<SERVER,PARAMS>
public class UT2004AnalyzerRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
Class used for creating, connecting and starting analyzers with default settings that are taken from the properties.
The address where the instances will connect are defined either in the constructor
or taken from the properties of the PogamutPlatform
.
For more information about the class see AgentRunner
.
Field Summary | |
---|---|
protected String |
host
Default host where the instances are going to be connected as defaults, see IAgentParameters.assignDefaults(IAgentParameters) . |
protected String |
name
Default name that will serve as a basis for IAgentId , see IAgentParameters.assignDefaults(IAgentParameters) . |
protected int |
port
Default port where the instances are going to be connected as defaults, see IAgentParameters.assignDefaults(IAgentParameters) . |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner |
---|
agents, consoleLogging, defaultLogLevel, factory, killed, killingAgents, killingAgentsMutex, latch, listener, log, main, mutex |
Constructor Summary | |
---|---|
UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory)
Construct the runner without specifying anything as default. |
|
UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory,
String name)
Construct the runner + specify the default name, host:port will be taken from the Pogamut platform properties. |
|
UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory,
String name,
String host,
int port)
Construct the runner + specify all defaults. |
Method Summary | |
---|---|
protected IAgentParameters |
newDefaultAgentParameters()
Provides default parameters that is, IAgentId using name and SocketConnectionAddress
using host and port . |
SERVER |
startAgent()
|
List<SERVER> |
startAgents(int count)
|
List<SERVER> |
startAgents(PARAMS... agentParameters)
|
Methods inherited from class cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner |
---|
createAgentWithParams, fillInDefaults, fillInDefaults, getLog, isMain, isPausing, killAgent, killAgents, newAgentId, postStartedHook, postStartHook, preInitHook, preResumeHook, preStartHook, setConsoleLogging, setLog, setLogLevel, setMain, setPausing, startAgent, startAgentWithParams, startAgentWithParamsMain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String host
IAgentParameters.assignDefaults(IAgentParameters)
.
protected int port
IAgentParameters.assignDefaults(IAgentParameters)
.
protected String name
IAgentId
, see IAgentParameters.assignDefaults(IAgentParameters)
.
Constructor Detail |
---|
public UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory, String name, String host, int port)
factory
- to be used for creating new IUT2004Server
instancesname
- default name that serve as a basis for IAgentId
host
- default host where the instances are going to be connectedport
- default port where the instances are going to be connectedpublic UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory, String name)
factory
- factory to be used for creating new IUT2004Server
instancesname
- default name that serve as a basis for IAgentId
public UT2004AnalyzerRunner(IAgentFactory<SERVER,PARAMS> factory)
factory
- factory to be used for creating new IUT2004Server
instancesMethod Detail |
---|
public SERVER startAgent() throws cz.cuni.amis.utils.exception.PogamutException
startAgent
in interface IAgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
startAgent
in class AgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
cz.cuni.amis.utils.exception.PogamutException
public List<SERVER> startAgents(int count) throws cz.cuni.amis.utils.exception.PogamutException
startAgents
in interface IAgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
startAgents
in class AgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
cz.cuni.amis.utils.exception.PogamutException
public List<SERVER> startAgents(PARAMS... agentParameters) throws cz.cuni.amis.utils.exception.PogamutException
startAgents
in interface IAgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
startAgents
in class AgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
cz.cuni.amis.utils.exception.PogamutException
protected IAgentParameters newDefaultAgentParameters()
IAgentId
using name
and SocketConnectionAddress
using host
and port
.
newDefaultAgentParameters
in class AgentRunner<SERVER extends IUT2004Analyzer,PARAMS extends UT2004AnalyzerParameters>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |