public interface IExternalExecutionFeature extends IExternalComponentFeature
Modifier and Type | Method and Description |
---|---|
IFuture<IComponentDescription> |
getDescription(IComponentIdentifier cid)
Get the component description.
|
IFuture<IComponentDescription> |
getDescriptionAsync()
Get the component description.
|
IExternalAccess |
getExternalAccess(IComponentIdentifier cid)
Get the external access for a component id.
|
IFuture<IExternalAccess> |
getExternalAccessAsync(IComponentIdentifier cid)
Get the external access for a component id.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
killComponent()
Kill the component.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
killComponent(java.lang.Exception e)
Kill the component.
|
ISubscriptionIntermediateFuture<CMSStatusEvent> |
listenToComponent()
Add a component listener for a specific component.
|
<T> ISubscriptionIntermediateFuture<T> |
repeatStep(long initialDelay,
long delay,
IComponentStep<T> step)
Repeats a ComponentStep periodically, until terminate() is called on result future or a failure occurs in a step.
|
<T> ISubscriptionIntermediateFuture<T> |
repeatStep(long initialDelay,
long delay,
IComponentStep<T> step,
boolean ignorefailures)
Repeats a ComponentStep periodically, until terminate() is called on result future.
|
IFuture<java.lang.Void> |
resumeComponent()
Resume the execution of an component.
|
<T> IFuture<T> |
scheduleStep(IComponentStep<T> step)
Execute a component step.
|
<T> IFuture<T> |
scheduleStep(int priority,
IComponentStep<T> step)
Execute a component step.
|
IFuture<java.lang.Void> |
setComponentBreakpoints(java.lang.String[] breakpoints)
Set breakpoints for a component.
|
IFuture<java.lang.Void> |
stepComponent(java.lang.String stepinfo)
Execute a step of a suspended component.
|
IFuture<java.lang.Void> |
suspendComponent()
Suspend the execution of an component.
|
IFuture<java.lang.Void> |
waitForDelay(long delay)
Wait for some time.
|
IFuture<java.lang.Void> |
waitForDelay(long delay,
boolean realtime)
Wait for some time.
|
<T> IFuture<T> |
waitForDelay(long delay,
IComponentStep<T> step)
Wait for some time and execute a component step afterwards.
|
<T> IFuture<T> |
waitForDelay(long delay,
IComponentStep<T> step,
boolean realtime)
Wait for some time and execute a component step afterwards.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
waitForTermination()
Waits for the components to finish.
|
IFuture<java.lang.Void> |
waitForTick()
Wait for the next tick.
|
IFuture<java.lang.Void> |
waitForTick(IComponentStep<java.lang.Void> run)
Wait for the next tick.
|
<T> IFuture<T> scheduleStep(IComponentStep<T> step)
step
- The component step.<T> IFuture<T> scheduleStep(int priority, IComponentStep<T> step)
step
- The component step.priority
- The step priority.
The priority x>STEP_PRIORITY_IMMEDIATE being immediate steps,
i.e. all steps with prio x>=STEP_PRIORITY_IMMEDIATE are always executed (even when suspended).
Default steps get prio STEP_PRIORITY_NOMRAL (not immediate).<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step, boolean realtime)
<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step)
IFuture<java.lang.Void> waitForDelay(long delay, boolean realtime)
IFuture<java.lang.Void> waitForDelay(long delay)
IFuture<java.lang.Void> waitForTick(IComponentStep<java.lang.Void> run)
time
- The time.IFuture<java.lang.Void> waitForTick()
time
- The time.IFuture<java.util.Map<java.lang.String,java.lang.Object>> waitForTermination()
<T> ISubscriptionIntermediateFuture<T> repeatStep(long initialDelay, long delay, IComponentStep<T> step)
initialDelay
- delay before first execution in millisecondsdelay
- delay between scheduled executions of the step in millisecondsstep
- The component step<T> ISubscriptionIntermediateFuture<T> repeatStep(long initialDelay, long delay, IComponentStep<T> step, boolean ignorefailures)
initialDelay
- delay before first execution in millisecondsdelay
- delay between scheduled executions of the step in millisecondsstep
- The component stepignorefailures
- Don't terminate repeating after a failed step.ISubscriptionIntermediateFuture<CMSStatusEvent> listenToComponent()
cid
- The component to be listened.IFuture<java.lang.Void> stepComponent(java.lang.String stepinfo)
componentid
- The component identifier.listener
- Called when the step is finished (result will be the component description).IFuture<java.lang.Void> setComponentBreakpoints(java.lang.String[] breakpoints)
componentid
- The component identifier.breakpoints
- The new breakpoints (if any).IFuture<java.lang.Void> suspendComponent()
componentid
- The component identifier.IFuture<java.lang.Void> resumeComponent()
componentid
- The component identifier.IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent()
IFuture<java.util.Map<java.lang.String,java.lang.Object>> killComponent(java.lang.Exception e)
e
- The failure reason, if any.IExternalAccess getExternalAccess(IComponentIdentifier cid)
cid
- The component id.IFuture<IExternalAccess> getExternalAccessAsync(IComponentIdentifier cid)
cid
- The component id.IFuture<IComponentDescription> getDescriptionAsync()
IFuture<IComponentDescription> getDescription(IComponentIdentifier cid)