public class RuntimeListener extends java.lang.Object implements IACTRRuntimeListener
Constructor and Description |
---|
RuntimeListener(RuntimeState state) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<java.lang.Boolean> |
getResumeFuture() |
java.util.concurrent.Future<java.lang.Boolean> |
getStartFuture() |
java.util.concurrent.Future<java.lang.Boolean> |
getStopFuture() |
java.util.concurrent.Future<java.lang.Boolean> |
getSuspendFuture() |
void |
modelAdded(ACTRRuntimeEvent event)
called anytime a model is added to the runtime
|
void |
modelRemoved(ACTRRuntimeEvent event)
when model is removed
|
void |
modelStarted(ACTRRuntimeEvent event)
after model has started
|
void |
modelStopped(ACTRRuntimeEvent event)
after model has stopped, and all its events (stopped, disconnected) have
been fired, this will be called (but before runtimeStopped if this is th
elast model)
|
void |
runtimeResumed(ACTRRuntimeEvent event)
after last model resumes
|
void |
runtimeStarted(ACTRRuntimeEvent event)
after at least one model has starteed
|
void |
runtimeStopped(ACTRRuntimeEvent event)
after the last model has stopped
|
void |
runtimeSuspended(ACTRRuntimeEvent event)
after last model has suspended
|
public RuntimeListener(RuntimeState state)
public java.util.concurrent.Future<java.lang.Boolean> getStartFuture()
public java.util.concurrent.Future<java.lang.Boolean> getStopFuture()
public java.util.concurrent.Future<java.lang.Boolean> getSuspendFuture()
public java.util.concurrent.Future<java.lang.Boolean> getResumeFuture()
public void modelAdded(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelAdded
in interface IACTRRuntimeListener
public void modelRemoved(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelRemoved
in interface IACTRRuntimeListener
public void runtimeResumed(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeResumed
in interface IACTRRuntimeListener
public void runtimeStarted(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeStarted
in interface IACTRRuntimeListener
public void runtimeStopped(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeStopped
in interface IACTRRuntimeListener
public void runtimeSuspended(ACTRRuntimeEvent event)
IACTRRuntimeListener
runtimeSuspended
in interface IACTRRuntimeListener
public void modelStarted(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelStarted
in interface IACTRRuntimeListener
public void modelStopped(ACTRRuntimeEvent event)
IACTRRuntimeListener
modelStopped
in interface IACTRRuntimeListener