|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.execution.local.RemoteObjectStub
org.eclipse.hyades.execution.local.ExecutionComponentStub
org.eclipse.hyades.execution.local.ExecutorStub
org.eclipse.hyades.execution.local.JavaTaskExecutorStub
public class JavaTaskExecutorStub
In addition to providing remote execution semantics for the methods of
the "java task executor" (JavaTaskExecutorImpl), instances
of this class establish the local portion of the test monitoring and
control agent.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.execution.local.ExecutorStub |
|---|
dataProcessors |
| Fields inherited from interface org.eclipse.hyades.execution.core.IExecutor |
|---|
CONTROL_EVENT_RESUME, CONTROL_EVENT_SUSPEND |
| Fields inherited from interface org.eclipse.hyades.execution.core.IExecutionComponent |
|---|
DEAD, INACTIVE, NOT_CONFIGURED, READY, SUSPENDED |
| Constructor Summary | |
|---|---|
JavaTaskExecutorStub()
|
|
JavaTaskExecutorStub(IExecutionComponent delegate)
|
|
| Method Summary | |
|---|---|
void |
addChild(IExecutionComponent child)
Add special semantics for JavaTaskRemoteHyadesComponents that
are added as children. |
IExecutableObject |
getCompatibleExecutableObject(java.lang.String classname)
Create an IExecutableObject instance that is compatible
with this executor. |
void |
init()
Set up communication with the remote test agent. |
void |
launch()
Launches the executable on this ISession's node |
java.lang.String |
performControlEvent(java.lang.String controlEvent,
java.lang.String[] params)
Performs the control event specified. |
void |
sendMessage(IControlMessage message)
This method is implemented at the stub level. |
boolean |
supportsControlEvent(java.lang.String controlEvent)
Returns a boolean specifying whether the control event specified is supported. |
| Methods inherited from class org.eclipse.hyades.execution.local.ExecutorStub |
|---|
getCommunicationPort, getDataProcessors, getExecutableObject, getExecutionResultLocation, getExecutionResultName, getPid, getProcessConsole, kill, kill, launch, setCommunicationPort, setDataProcessors, setExecutableObject, setExecutionResultLocation, setExecutionResultName |
| Methods inherited from class org.eclipse.hyades.execution.local.ExecutionComponentStub |
|---|
addExecutionComponentStateChangeListener, fireStateChangeEvent, getChildById, getChildByName, getChildren, getId, getName, getNode, getParent, getState, getType, getVersion, handleMessage, removeChild, removeExecutionComponentStateChangeListener, setParent |
| Methods inherited from class org.eclipse.hyades.execution.local.RemoteObjectStub |
|---|
delegateRemoteCall, getDelegate, getSessionContext, getUniqueId, setDelegate, setSessionContext |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.execution.core.IExecutionComponent |
|---|
addExecutionComponentStateChangeListener, fireStateChangeEvent, getChildById, getChildByName, getChildren, getId, getName, getNode, getParent, getState, getType, getVersion, handleMessage, removeChild, removeExecutionComponentStateChangeListener, setParent |
| Constructor Detail |
|---|
public JavaTaskExecutorStub()
public JavaTaskExecutorStub(IExecutionComponent delegate)
| Method Detail |
|---|
public void launch()
throws ExecutionComponentStateException
IExecutor
launch in interface IExecutorlaunch in class ExecutorStubExecutionComponentStateException - if the test monitoring and
control agent is not activeIExecutor.launch()
public IExecutableObject getCompatibleExecutableObject(java.lang.String classname)
throws java.lang.ClassNotFoundException
ExecutorStubIExecutableObject instance that is compatible
with this executor.
The implementation of this method differs from the norm, as no
responsibilities are delegated to the delegate object. Instead, the
creation of the executable object is handled completely by the
stub/skeleton combination.
getCompatibleExecutableObject in interface IExecutorgetCompatibleExecutableObject in class ExecutorStubIJavaTaskExecutableObjectStub
java.lang.ClassNotFoundExceptionIExecutor.getCompatibleExecutableObject(java.lang.String)public void init()
init in interface IExecutionComponentinit in interface IRemoteObjectinit in class ExecutionComponentStubIRemoteObject.init()
public void sendMessage(IControlMessage message)
throws MessageDeliveryException
sendMessage in interface IExecutionComponentsendMessage in class ExecutionComponentStubMessageDeliveryExceptionIExecutionComponent.sendMessage(org.eclipse.hyades.execution.core.IControlMessage)public void addChild(IExecutionComponent child)
JavaTaskRemoteHyadesComponents that
are added as children. When a JavaTaskRemoteHyadesComponent is
added as a child, a reference the test monitoring and control agent is
passed to the new child, enabling it to fulfill monitoring requests.
addChild in interface IExecutionComponentaddChild in class ExecutionComponentStubchild - the child to addIExecutionComponent.addChild(org.eclipse.hyades.execution.core.IExecutionComponent)public boolean supportsControlEvent(java.lang.String controlEvent)
IExecutor
controlEvent - Contol Event in question.
public java.lang.String performControlEvent(java.lang.String controlEvent,
java.lang.String[] params)
IExecutor
controlEvent - Contol Event to perform.
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||