TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.local
Class RemoteObjectStub

java.lang.Object
  extended by org.eclipse.hyades.execution.local.RemoteObjectStub
All Implemented Interfaces:
IRemoteObject
Direct Known Subclasses:
ExecutableObjectStub, ExecutionComponentStub

public abstract class RemoteObjectStub
extends java.lang.Object
implements IRemoteObject

This is the parent of the hierarchy of stubs -- objects that handle remote invocation semantics for other objects.


Constructor Summary
RemoteObjectStub()
           
 
Method Summary
 ReturnData delegateRemoteCall(java.lang.Class[] argTypes, java.lang.Object[] callArgs, java.lang.String call)
          Delegate a remote method call to the target instance.
 java.lang.Object getDelegate()
          Get the instance for which this stub is providing remote invocation semantics.
 ISession getSessionContext()
          Get the local session context for this remote object.
 java.lang.Integer getUniqueId()
          get the id unique to this instance
 void init()
           
 void setDelegate(java.lang.Object delegate)
           
 void setSessionContext(ISession session)
          Set the session context for this remote object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteObjectStub

public RemoteObjectStub()
Method Detail

getUniqueId

public java.lang.Integer getUniqueId()
get the id unique to this instance

Specified by:
getUniqueId in interface IRemoteObject
Returns:

delegateRemoteCall

public ReturnData delegateRemoteCall(java.lang.Class[] argTypes,
                                     java.lang.Object[] callArgs,
                                     java.lang.String call)
                              throws RemoteInvocationException
Delegate a remote method call to the target instance. This method orchestrates the marshalling of the method call and the remote invocation of the method against the target.

Specified by:
delegateRemoteCall in interface IRemoteObject
Parameters:
callArgs -
call -
Returns:
Throws:
RemoteInvocationException

getDelegate

public java.lang.Object getDelegate()
Get the instance for which this stub is providing remote invocation semantics.

Specified by:
getDelegate in interface IRemoteObject
Returns:

setDelegate

public void setDelegate(java.lang.Object delegate)
Specified by:
setDelegate in interface IRemoteObject
See Also:
IRemoteObject.setDelegate(java.lang.Object)

init

public void init()
Specified by:
init in interface IRemoteObject
See Also:
IRemoteObject.init()

getSessionContext

public ISession getSessionContext()
Get the local session context for this remote object. Remote objects are created in the context of a session. The session context of a remote object is the same as that of the factory that created the remote object.

Specified by:
getSessionContext in interface IRemoteObject
Returns:
a SessionImpl instance
See Also:
SessionImpl

setSessionContext

public void setSessionContext(ISession session)
Set the session context for this remote object. The session context should be set to the same as that of the factory that created the remote object.

Specified by:
setSessionContext in interface IRemoteObject

TPTP 4.5.0 Platform Project
Public API Specification