public class AgentPlugin extends PluginAncestor
MScriptInterface.IGNORE_INHERITED_METHOD, MScriptInterface.NOT_MSCRIPT_METHOD, MScriptInterface.TO_PLUGIN
Constructor and Description |
---|
AgentPlugin() |
Modifier and Type | Method and Description |
---|---|
static AgentPlugin |
assignAgent(String modelName_p,
long timeoutMillis_p)
starts model if not already running and dispatch one virtual user.
|
void |
close()
INTERNAL USE ONLY
|
String |
getAgentID() |
String |
getPluginDesc() |
String |
getPluginID() |
Object |
nextCmd(long timeoutMillis)
returns the next cmd sent by the model mscript.
|
Object |
sendReceive(Object cmd,
long timeoutMillis)
sends a command to remote agent.
|
void |
setAgentID(String agentID_p) |
void |
setCmdTimeoutMillis(long cmdTimeoutMillis_p) |
void |
setResult(Object result)
INTERNAL USE ONLY
|
void |
setResultTimeoutMillis(long resultTimeoutMillis_p) |
void |
start()
INTERNAL USE ONLY
|
enterInitialState, exitFinalState
public String getAgentID()
public void setCmdTimeoutMillis(long cmdTimeoutMillis_p)
public void setResultTimeoutMillis(long resultTimeoutMillis_p)
public void start() throws Exception
INTERNAL USE ONLY
start
in class PluginAncestor
Exception
public void close()
INTERNAL USE ONLY
close
in class PluginAncestor
public Object sendReceive(Object cmd, long timeoutMillis)
cmd
- timeoutMillis
- public void setResult(Object result) throws InterruptedException
INTERNAL USE ONLY
result
- InterruptedException
public String getPluginID()
getPluginID
in class PluginAncestor
public String getPluginDesc()
getPluginDesc
in class PluginAncestor
public Object nextCmd(long timeoutMillis) throws InterruptedException
INTERNAL USE ONLY
timeoutMillis
- InterruptedException
Copyright TestOptimal, LLC