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(IComponentStep<T> step,
long delay)
Schedule a step of the component.
|
<T> IFuture<T> |
scheduleStep(int priority,
IComponentStep<T> step)
Schedule a step of the component.
|
<T> IFuture<T> |
scheduleStep(int priority,
IComponentStep<T> step,
long delay)
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.
|
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> scheduleStep(IComponentStep<T> step, long delay)
step
- Code to be executed as a step of the component.delay
- The delay to wait before step should be done.<T> IFuture<T> scheduleStep(int priority, IComponentStep<T> step, long delay)
step
- Code to be executed as a step of the component.delay
- The delay to wait before step should be done.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()