org.eclipse.hyades.execution.core
Interface ISession
- All Superinterfaces:
- IExecutionComponent
- public interface ISession
- extends IExecutionComponent
A session is the abstraction of a connection with a remote node.
Sessions are created by the node and are scoped by a Principal.
Therefore, a single workbench instance may have many sessions, one
for each Principal. Tools access the session in context of a Principal,
when a tool is completed with a session it should release it so that the
reference count can be decremented. Sessions are the highest level
IExecutionComponent on the workbench side.
- Version:
- 0.0.2
Methods inherited from interface org.eclipse.hyades.execution.core.IExecutionComponent |
addChild, createChild, getChildById, getChildByName, getChildren, getChildren, getChildren, getId, getName, getNode, getParent, getType, getVersion, isDead, isInactive, isReady, isSuspended |
createExecutionEnvironment
public IExecutionEnvironment createExecutionEnvironment(String name,
String type)
- Create an execution environment in the context of this session.
- Parameters:
name
- The name of the execution environmenttype
- The type of execution environment to create- Returns:
- The created IExecutionEnvironment
release
public void release()
- Release this session so that it can be cleaned up and destroyed
if no other tools are using it.