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, exitFinalStatepublic 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 PluginAncestorExceptionpublic void close()
INTERNAL USE ONLY
close in class PluginAncestorpublic Object sendReceive(Object cmd, long timeoutMillis)
cmd - timeoutMillis - public void setResult(Object result) throws InterruptedException
INTERNAL USE ONLY
result - InterruptedExceptionpublic String getPluginID()
getPluginID in class PluginAncestorpublic String getPluginDesc()
getPluginDesc in class PluginAncestorpublic Object nextCmd(long timeoutMillis) throws InterruptedException
INTERNAL USE ONLY
timeoutMillis - InterruptedExceptionCopyright TestOptimal, LLC