public interface IExternalAccess
Modifier and Type | Method and Description |
---|---|
IFuture<IComponentIdentifier> |
createChild(ComponentInstanceInfo component)
Create a subcomponent.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
getArguments()
Get the arguments.
|
IFuture<IComponentIdentifier[]> |
getChildren(java.lang.String type)
Get the children (if any) component identifiers.
|
IComponentIdentifier |
getComponentIdentifier()
Get the id of the component.
|
IFuture<java.lang.String> |
getFileName(java.lang.String ctype)
Get the model name of a component type.
|
java.lang.String |
getLocalType()
Get the local type name of this component as defined in the parent.
|
IModelInfo |
getModel()
Get the model of the component.
|
IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
getResults()
Get the component results.
|
IExternalAccess |
getServiceContainer()
Deprecated.
From version 3.0 - replaced with external access.
Get the service container.
|
IExternalAccess |
getServiceProvider()
Deprecated.
From version 3.0 - replaced with external access.
Get the service provider.
|
boolean |
isExternalThread()
Test if current thread is an external thread.
|
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.
|
<T> IFuture<T> |
scheduleStep(IComponentStep<T> step)
Schedule a step of the component.
|
<T> IFuture<T> |
scheduleStep(int priority,
IComponentStep<T> step)
Schedule a step of the component.
|
ISubscriptionIntermediateFuture<IMonitoringEvent> |
subscribeToEvents(IFilter<IMonitoringEvent> filter,
boolean initial,
IMonitoringService.PublishEventLevel elm)
Subscribe to component events.
|
ISubscriptionIntermediateFuture<Tuple2<java.lang.String,java.lang.Object>> |
subscribeToResults()
Subscribe to receive results.
|
<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.
|
IModelInfo getModel()
IComponentIdentifier getComponentIdentifier()
IExternalAccess getServiceProvider()
IExternalAccess getServiceContainer()
<T> IFuture<T> scheduleStep(IComponentStep<T> step)
step
- Code to be executed as a step of the component.<T> IFuture<T> scheduleStep(int priority, IComponentStep<T> step)
step
- Code to be executed as a step of the component.<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step, boolean realtime)
<T> IFuture<T> waitForDelay(long delay, IComponentStep<T> step)
boolean isExternalThread()
IFuture<IComponentIdentifier> createChild(ComponentInstanceInfo component)
component
- The instance info.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.IFuture<IComponentIdentifier[]> getChildren(java.lang.String type)
IFuture<java.lang.String> getFileName(java.lang.String ctype)
ctype
- The component type.java.lang.String getLocalType()
ISubscriptionIntermediateFuture<IMonitoringEvent> subscribeToEvents(IFilter<IMonitoringEvent> filter, boolean initial, IMonitoringService.PublishEventLevel elm)
filter
- An optional filter.initial
- True, for receiving the current state.ISubscriptionIntermediateFuture<Tuple2<java.lang.String,java.lang.Object>> subscribeToResults()
IFuture<java.util.Map<java.lang.String,java.lang.Object>> getResults()
IFuture<java.util.Map<java.lang.String,java.lang.Object>> getArguments()