|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.tools.async.common.MINAEndpoint
org.jactr.tools.async.shadow.ShadowController
public class ShadowController
a mock controller that is to be used to interface with the real one controller.NetworkedDebugController
| Field Summary |
|---|
| Fields inherited from class org.jactr.tools.async.common.MINAEndpoint |
|---|
ADDRESS, CRED_CLASS, CREDENTAILS, PROTOCOL_CLASS, SERVICE_CLASS, TRANSPORT_CLASS |
| Constructor Summary | |
|---|---|
ShadowController()
|
|
| Method Summary | |
|---|---|
void |
addBreakpoint(org.jactr.core.runtime.controller.debug.BreakpointType type,
java.lang.String modelName,
java.lang.String details)
|
void |
attach()
start up the service |
void |
clearBreakpoints()
|
void |
detach(boolean force)
|
org.antlr.runtime.tree.CommonTree |
getBreakpointData(java.lang.String modelName)
|
ShadowIOHandler |
getHandler()
|
BaseIOHandler |
getIOHandler()
return the io handler that handles all the communications |
org.antlr.runtime.tree.CommonTree |
getModelDescriptor(java.lang.String modelName)
|
java.util.Collection<java.lang.String> |
getModelNames()
|
java.util.Collection<java.lang.String> |
getRunningModels()
|
java.util.Collection<java.lang.String> |
getSuspendedModels()
|
java.util.Collection<java.lang.String> |
getTerminatedModels()
|
boolean |
isConnected()
|
boolean |
isRunning()
|
boolean |
isRunning(java.lang.String modelName)
|
boolean |
isSuspended()
|
boolean |
isSuspended(java.lang.String modelName)
|
void |
removeBreakpoint(org.jactr.core.runtime.controller.debug.BreakpointType type,
java.lang.String modelName,
java.lang.String details)
|
void |
reset()
|
void |
resume()
|
void |
resume(java.lang.String modelName)
|
void |
resumed(java.lang.String modelName)
called by the io handler only when the actual runtime has resumed. |
void |
setBreakpointData(java.lang.String modelName,
org.antlr.runtime.tree.CommonTree breakpointData)
|
void |
setModelDescriptor(java.lang.String modelName,
org.antlr.runtime.tree.CommonTree modelDescriptor)
|
void |
setProductionEnabled(java.lang.String modelName,
java.lang.String productionName,
boolean enabled)
|
void |
start()
|
void |
start(boolean suspendImmediately)
|
void |
started(java.util.Collection<java.lang.String> modelNames)
called by the io handler only when the runtime has actually started. |
void |
stop()
|
void |
stop(java.lang.String modelName)
|
void |
stopped(java.lang.String modelName)
called by the io handler only when the runtime has stopped. |
void |
suspend()
|
void |
suspend(java.lang.String modelName)
|
void |
suspended(java.lang.String modelName)
called by the io handler only to signal that the runtime (where ever it is) has been suspended. |
boolean |
waitForCompletion()
|
boolean |
waitForCompletion(long maxWait)
|
boolean |
waitForConnection(long timeout)
after attach is called (which will start the configured service) you will often need to wait for the connection to be completed (established with the remote) |
boolean |
waitForResumption()
|
boolean |
waitForResumption(long maxWait)
Will wait until one of three things happens: the state is now resumed, the state has changed otherwise, or maxWait milliseconds have elapsed |
boolean |
waitForStart()
|
boolean |
waitForStart(long maxWait)
Will wait until one of three things happens: the state is now running, the state has changed otherwise, or maxWait milliseconds have elapsed |
long |
waitForStateChange()
|
long |
waitForStateChange(long maxWait)
wait at most maxWait milliseconds for some change of state in the system. |
boolean |
waitForSuspension()
|
boolean |
waitForSuspension(long maxWait)
Will wait until one of three things happens: the state is now suspended, the state has changed otherwise, or maxWait milliseconds have elapsed |
| Methods inherited from class org.jactr.tools.async.common.MINAEndpoint |
|---|
getActualAddress, getActualCredentials, getExecutorService, getParameter, getPossibleParameters, getSetableParameters, setAddressInfo, setCredentialInformation, setCredentialsClass, setExecutorService, setParameter, setProtocol, setService, setTransportProvider |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShadowController()
| Method Detail |
|---|
public java.util.Collection<java.lang.String> getModelNames()
public java.util.Collection<java.lang.String> getRunningModels()
public java.util.Collection<java.lang.String> getTerminatedModels()
public java.util.Collection<java.lang.String> getSuspendedModels()
public org.antlr.runtime.tree.CommonTree getModelDescriptor(java.lang.String modelName)
public void setModelDescriptor(java.lang.String modelName,
org.antlr.runtime.tree.CommonTree modelDescriptor)
public org.antlr.runtime.tree.CommonTree getBreakpointData(java.lang.String modelName)
public void setBreakpointData(java.lang.String modelName,
org.antlr.runtime.tree.CommonTree breakpointData)
public boolean isConnected()
public boolean waitForConnection(long timeout)
throws java.lang.InterruptedException
timeout - milliseconds to wait
java.lang.InterruptedExceptionpublic void attach()
IController.attach()public ShadowIOHandler getHandler()
public BaseIOHandler getIOHandler()
MINAEndpoint
getIOHandler in class MINAEndpointpublic void detach(boolean force)
public boolean isRunning()
IController.isRunning()public boolean isRunning(java.lang.String modelName)
public boolean isSuspended()
IController.isSuspended()public boolean isSuspended(java.lang.String modelName)
public void addBreakpoint(org.jactr.core.runtime.controller.debug.BreakpointType type,
java.lang.String modelName,
java.lang.String details)
public void removeBreakpoint(org.jactr.core.runtime.controller.debug.BreakpointType type,
java.lang.String modelName,
java.lang.String details)
public void clearBreakpoints()
public void setProductionEnabled(java.lang.String modelName,
java.lang.String productionName,
boolean enabled)
public void reset()
org.jactr.core.runtime.controller.IController#reset()public void resume()
IController.resume()public void resume(java.lang.String modelName)
public void start()
IController.start()public void start(boolean suspendImmediately)
IController.start(boolean)public void stop()
IController.stop()public void stop(java.lang.String modelName)
public void suspend()
IController.suspend()public void suspend(java.lang.String modelName)
public long waitForStateChange()
throws java.lang.InterruptedException
java.lang.InterruptedException
public long waitForStateChange(long maxWait)
throws java.lang.InterruptedException
maxWait -
java.lang.InterruptedException
public boolean waitForCompletion()
throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean waitForCompletion(long maxWait)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionIController.waitForCompletion()public void resumed(java.lang.String modelName)
public boolean waitForResumption()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionwaitForResumption(long)
public boolean waitForResumption(long maxWait)
throws java.lang.InterruptedException
maxWait - milliseconds to block, 0 is indefinite
java.lang.InterruptedExceptionwaitForStateChange(long)public void suspended(java.lang.String modelName)
public boolean waitForSuspension()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionwaitForSuspension(long)
public boolean waitForSuspension(long maxWait)
throws java.lang.InterruptedException
maxWait - milliseconds to block, 0 is indefinite
java.lang.InterruptedExceptionwaitForStateChange(long)
public boolean waitForStart()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionIController.waitForStart()
public boolean waitForStart(long maxWait)
throws java.lang.InterruptedException
maxWait - milliseconds to block, 0 is indefinite
java.lang.InterruptedExceptionwaitForStateChange(long)public void started(java.util.Collection<java.lang.String> modelNames)
public void stopped(java.lang.String modelName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||