| org.apache.harmony.rmi.remoteref.UnicastRef org.apache.harmony.rmi.remoteref.UnicastRef2 org.apache.harmony.rmi.remoteref.ActivatableRef
ActivatableRef | public class ActivatableRef extends UnicastRef2 (Code) | | Activatable ref is the Remote Reference that organizes the next level of indirection during the remote method invocation.
It means that ActivatableRef contains another RemoteRef inside that can be 'null' if the ActivatableRef wasn't yet activated or will contain
the Remote Reference to the active object.
author: Victor A. Martynov version: $Revision: 1.1.2.3 $ version: ActivatableRef |
Field Summary | |
protected ActivationID | id The ActivationID of the Activatable Object of this ActivatableRef. | protected RemoteRef | ref The internal Remote Reference of this ActivatableRef. | RMILog | rlog |
Method Summary | |
public String | getRefClass(ObjectOutput objectoutput) The getRefClass method returns "ActivatableRef" String. | public static RemoteStub | getStub(ActivationDesc desc, ActivationID aid) Returns the Remote Stub for the given activatable class. | public Object | invoke(Remote obj, Method method, Object[] params, long opnum) If the internal remote reference of this ActivatableRef is null, the activatable object is activated using
ActivationID.activate() method. | public void | readExternal(ObjectInput in) To obtain the description of the Serialization of this class see the Serialized form of
java.rmi.server.RemoteObject. | public boolean | remoteEquals(RemoteRef ref) Standard remoteEquals implementation. | public void | writeExternal(ObjectOutput out) To obtain the description of the Serialization of this class see the Serialized form of
java.rmi.server.RemoteObject. |
id | protected ActivationID id(Code) | | The ActivationID of the Activatable Object of this ActivatableRef.
|
ref | protected RemoteRef ref(Code) | | The internal Remote Reference of this ActivatableRef. This ref is 'null' initially
but when the remote call happens, 'ref' points to the active object.
|
ActivatableRef | public ActivatableRef()(Code) | | Default constructor. It is used mostly in Deserialization.
|
ActivatableRef | public ActivatableRef(ActivationID aid, RemoteRef ref)(Code) | | Special constructor to create ActivatableRef with the given Remote Reference and ActivationID.
Used in ActivatableServerRef.
Parameters: aid - The handle for the Activatable Object. Parameters: ref - The internal reference of this ActivatableRef. |
getRefClass | public String getRefClass(ObjectOutput objectoutput)(Code) | | The getRefClass method returns "ActivatableRef" String.
|
invoke | public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception(Code) | | If the internal remote reference of this ActivatableRef is null, the activatable object is activated using
ActivationID.activate() method. After that the remote call is delegated to the ref, by means of calling its 'invoke' method.
|
remoteEquals | public boolean remoteEquals(RemoteRef ref)(Code) | | Standard remoteEquals implementation.
Parameters: ref - |
writeExternal | public void writeExternal(ObjectOutput out) throws IOException(Code) | | To obtain the description of the Serialization of this class see the Serialized form of
java.rmi.server.RemoteObject.
|
Fields inherited from org.apache.harmony.rmi.remoteref.UnicastRef | final public static RMILog clientCallsLog(Code)(Java Doc)
|
|
|