public interface IComponentManagementService
Modifier and Type | Interface and Description |
---|---|
static class |
IComponentManagementService.CMSCreatedEvent |
static class |
IComponentManagementService.CMSIntermediateResultEvent |
static class |
IComponentManagementService.CMSStatusEvent |
static class |
IComponentManagementService.CMSTerminatedEvent |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
addComponentListener(IComponentIdentifier comp,
ICMSComponentListener listener)
Add an component listener.
|
jadex.commons.future.ISubscriptionIntermediateFuture<IComponentManagementService.CMSStatusEvent> |
createComponent(CreationInfo info,
java.lang.String name,
java.lang.String model)
Create a new component on the platform.
|
jadex.commons.future.ITuple2Future<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> |
createComponent(java.lang.String model,
CreationInfo info)
Create a new component on the platform.
|
jadex.commons.future.ITuple2Future<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> |
createComponent(java.lang.String name,
java.lang.String model,
CreationInfo info)
Create a new component on the platform.
|
jadex.commons.future.IFuture<IComponentIdentifier> |
createComponent(java.lang.String name,
java.lang.String model,
CreationInfo info,
jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> resultlistener)
Deprecated.
Use other createComponent methods.
|
jadex.commons.future.IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
destroyComponent(IComponentIdentifier componentid)
Destroy (forcefully terminate) an component on the platform.
|
jadex.commons.future.IFuture<IComponentIdentifier[]> |
getChildren(IComponentIdentifier cid)
Get the children components of a component.
|
jadex.commons.future.IFuture<IComponentDescription[]> |
getChildrenDescriptions(IComponentIdentifier cid)
Get the children components of a component.
|
jadex.commons.future.IFuture<IComponentDescription> |
getComponentDescription(IComponentIdentifier cid)
Get the component description of a single component.
|
jadex.commons.future.IFuture<IComponentDescription[]> |
getComponentDescriptions()
Get all component descriptions.
|
jadex.commons.future.IFuture<IComponentIdentifier[]> |
getComponentIdentifiers()
Get the component identifiers.
|
jadex.commons.future.IFuture<IExternalAccess> |
getExternalAccess(IComponentIdentifier cid)
Get the external access of a component.
|
jadex.commons.future.IFuture<IComponentIdentifier> |
getParent(IComponentIdentifier cid)
Deprecated.
Use cid.getParent() instead
|
jadex.commons.future.IFuture<IComponentIdentifier> |
getRootIdentifier()
Get the root identifier (platform).
|
jadex.commons.future.IFuture<IModelInfo> |
loadComponentModel(java.lang.String filename,
IResourceIdentifier rid)
Load a component model.
|
jadex.commons.future.IFuture<java.lang.Void> |
removeComponentListener(IComponentIdentifier comp,
ICMSComponentListener listener)
Remove a listener.
|
jadex.commons.future.IFuture<java.lang.Void> |
resumeComponent(IComponentIdentifier componentid)
Resume the execution of an component.
|
jadex.commons.future.IFuture<IComponentDescription[]> |
searchComponents(IComponentDescription adesc,
ISearchConstraints con)
Search for components matching the given description.
|
jadex.commons.future.IFuture<IComponentDescription[]> |
searchComponents(IComponentDescription adesc,
ISearchConstraints con,
boolean remote)
Search for components matching the given description.
|
jadex.commons.future.IFuture<java.lang.Void> |
setComponentBreakpoints(IComponentIdentifier componentid,
java.lang.String[] breakpoints)
Set breakpoints for a component.
|
jadex.commons.future.IFuture<java.lang.Void> |
stepComponent(IComponentIdentifier componentid,
java.lang.String stepinfo)
Execute a step of a suspended component.
|
jadex.commons.future.IFuture<java.lang.Void> |
suspendComponent(IComponentIdentifier componentid)
Suspend the execution of an component.
|
jadex.commons.future.IFuture<IModelInfo> loadComponentModel(java.lang.String filename, IResourceIdentifier rid)
name
- The component name.jadex.commons.future.ITuple2Future<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> createComponent(java.lang.String model, CreationInfo info)
model
- The model identifier (e.g. file name).info
- Additional start information such as parent component or arguments (optional).jadex.commons.future.ITuple2Future<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> createComponent(java.lang.String name, java.lang.String model, CreationInfo info)
name
- The component name or null for automatic generation.model
- The model identifier (e.g. file name).info
- Additional start information such as parent component or arguments (optional).jadex.commons.future.ISubscriptionIntermediateFuture<IComponentManagementService.CMSStatusEvent> createComponent(CreationInfo info, java.lang.String name, java.lang.String model)
name
- The component name or null for automatic generation.model
- The model identifier (e.g. file name).info
- Additional start information such as parent component or arguments (optional).jadex.commons.future.IFuture<IComponentIdentifier> createComponent(java.lang.String name, java.lang.String model, CreationInfo info, jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> resultlistener)
name
- The component name or null for automatic generation.model
- The model identifier (e.g. file name).info
- Additional start information such as parent component or arguments (optional).resultlistener
- The result listener (if any). Will receive the results of the component execution, after the component has terminated.jadex.commons.future.IFuture<java.util.Map<java.lang.String,java.lang.Object>> destroyComponent(IComponentIdentifier componentid)
componentid
- The component to destroy.jadex.commons.future.IFuture<java.lang.Void> suspendComponent(IComponentIdentifier componentid)
componentid
- The component identifier.jadex.commons.future.IFuture<java.lang.Void> resumeComponent(IComponentIdentifier componentid)
componentid
- The component identifier.jadex.commons.future.IFuture<java.lang.Void> stepComponent(IComponentIdentifier componentid, java.lang.String stepinfo)
componentid
- The component identifier.listener
- Called when the step is finished (result will be the component description).jadex.commons.future.IFuture<java.lang.Void> setComponentBreakpoints(IComponentIdentifier componentid, java.lang.String[] breakpoints)
componentid
- The component identifier.breakpoints
- The new breakpoints (if any).jadex.commons.future.IFuture<IComponentIdentifier> getRootIdentifier()
jadex.commons.future.IFuture<IComponentIdentifier[]> getComponentIdentifiers()
jadex.commons.future.IFuture<IComponentDescription> getComponentDescription(IComponentIdentifier cid)
cid
- The component identifier.jadex.commons.future.IFuture<IComponentDescription[]> getComponentDescriptions()
jadex.commons.future.IFuture<IComponentDescription[]> searchComponents(IComponentDescription adesc, ISearchConstraints con)
jadex.commons.future.IFuture<IComponentDescription[]> searchComponents(IComponentDescription adesc, ISearchConstraints con, boolean remote)
jadex.commons.future.IFuture<java.lang.Void> addComponentListener(IComponentIdentifier comp, ICMSComponentListener listener)
comp
- The component to be listened on (or null for listening on all components).listener
- The listener to be added.jadex.commons.future.IFuture<java.lang.Void> removeComponentListener(IComponentIdentifier comp, ICMSComponentListener listener)
comp
- The component to be listened on (or null for listening on all components).listener
- The listener to be removed.jadex.commons.future.IFuture<IExternalAccess> getExternalAccess(IComponentIdentifier cid)
cid
- The component identifier.listener
- The result listener (receives an IExternalAccess object).jadex.commons.future.IFuture<IComponentIdentifier> getParent(IComponentIdentifier cid)
cid
- The component identifier.jadex.commons.future.IFuture<IComponentIdentifier[]> getChildren(IComponentIdentifier cid)
cid
- The component identifier.jadex.commons.future.IFuture<IComponentDescription[]> getChildrenDescriptions(IComponentIdentifier cid)
cid
- The component identifier.