org.sapia.ubik.rmi.server
Class RemoteRefEx

java.lang.Object
  extended by org.sapia.ubik.rmi.server.RemoteRef
      extended by org.sapia.ubik.rmi.server.RemoteRefEx
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler, HealthCheck, StubInvocationHandler
Direct Known Subclasses:
RemoteRefReliable

public class RemoteRefEx
extends RemoteRef

This class implements a basic stub handler (no fail over, no load balancing, no replication).

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sapia.ubik.rmi.server.RemoteRef
_callBack, _isFirstVoyage, _lock, _oid, _pool, _serverAddress, _vmId
 
Constructor Summary
RemoteRefEx()
           
RemoteRefEx(OID oid, ServerAddress serverAddress)
          Creates an instance of this class, with the given object and host identifiers.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method toCall, java.lang.Object[] params)
           
protected  java.lang.Object onShutdown(java.lang.Object proxy, java.lang.reflect.Method toCall, java.lang.Object[] params)
           
 
Methods inherited from class org.sapia.ubik.rmi.server.RemoteRef
getOid, getOID, getServerAddress, initPool, isCallBack, isValid, readExternal, sendCommand, setCallBack, toStubContainer, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRefEx

public RemoteRefEx()

RemoteRefEx

public RemoteRefEx(OID oid,
                   ServerAddress serverAddress)
Creates an instance of this class, with the given object and host identifiers.

Parameters:
oid - an OID
serverAddress - a ServerAddress
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method toCall,
                               java.lang.Object[] params)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Specified by:
invoke in class RemoteRef
Throws:
java.lang.Throwable
See Also:
InvocationHandler.invoke(Object, Method, Object[])

onShutdown

protected java.lang.Object onShutdown(java.lang.Object proxy,
                                      java.lang.reflect.Method toCall,
                                      java.lang.Object[] params)
                               throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2010 Sapia OSS. All Rights Reserved.