|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IExecutionComponent is the base class for all of the components in the runtime system. IExecutionComponent's are structured as a tree with the specialized ISession is the root of the tree on the workbench side.
IExecutionComponent's are uniquely identified at runtime with an ID. They are also named and typed but names and types are not guaranteed to be unique. Version support is provided as well.
IExecutionComponent's have at least four states. They can be inactive, ready, suspended, or dead.
Method Summary | |
void |
addChild(String id,
String name,
String type)
Add a child |
IExecutionComponent |
createChild(String id,
String name,
String type)
Create an child |
IExecutionComponent |
getChildById(String id)
Retrieve a child of this IExecutionComponent based upon its ID. |
IExecutionComponent |
getChildByName(String name)
Retrieve a child of this IExecutionComponent based upon its name. |
IExecutionComponent[] |
getChildren()
Get the first-level children that reside under this IExecutionComponent The typical heirarchy is a follows: ISession->IExecutor->IRemoteHyadesComponent It is possible, however, to have any level of nesting here. |
IExecutionComponent[] |
getChildren(String type)
Retrieve all of the first-level children of a specific type. |
IExecutionComponent[] |
getChildren(String type,
int state)
Retrieve all of the first-level children of a specific type in the specified state. |
String |
getId()
All IExecutionComponent instances must have an immutable ID. |
String |
getName()
All IExecutionComponent instances must have an immutable name. |
INode |
getNode()
Get the node on which this IExecutionComponent resides. |
IExecutionComponent |
getParent()
Get the container where this IExecutionComponent is hosted. |
String |
getType()
All IExecutionComponent instances must have an immutable type. |
String |
getVersion()
Retrieve the version. |
boolean |
isDead()
Whether this IExecutionComponent is in the dead state |
boolean |
isInactive()
Whether this IExecutionComponent is in the inactive state |
boolean |
isReady()
Whether this IExecutionComponent is in the ready state |
boolean |
isSuspended()
Whether this IExecutionComponent is in the suspend state |
Method Detail |
public String getName()
public String getId()
public String getType()
public String getVersion()
public IExecutionComponent getParent()
public IExecutionComponent[] getChildren()
public IExecutionComponent[] getChildren(String type)
public IExecutionComponent[] getChildren(String type, int state)
public IExecutionComponent getChildById(String id)
public IExecutionComponent getChildByName(String name)
name
- public IExecutionComponent createChild(String id, String name, String type)
id
- ID of the child IExecutionComponentname
- Name of the child IExecutionComponenttype
- Type of the child IExecutionComponentpublic void addChild(String id, String name, String type)
id
- ID of the child IExecutionComponentname
- Name of the child IExecutionComponenttype
- Type of the child IExecutionComponentpublic INode getNode()
public boolean isInactive()
public boolean isReady()
public boolean isSuspended()
public boolean isDead()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |