gnu.cajo
Class Cajo.Purger

java.lang.Object
  extended by gnu.cajo.Cajo.Purger
All Implemented Interfaces:
Invoke, java.io.Serializable
Enclosing class:
Cajo

public static final class Cajo.Purger
extends java.lang.Object
implements Invoke

This internal use only helper class automatically removes unresponsive server references from the internal queue. It cannot be instantiated outside this class, it is made public only because it is being invoked reflectively.

See Also:
Serialized Form

Method Summary
 java.lang.Object invoke(java.lang.String method, java.lang.Object args)
          This method, invoked transparently when any remote server method is called, monitors the progress of the invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public java.lang.Object invoke(java.lang.String method,
                               java.lang.Object args)
                        throws java.lang.Exception
This method, invoked transparently when any remote server method is called, monitors the progress of the invocation. If the call results in a java.rmi.RemoteException, the server object reference will be deleted from the internal queue automatically. All exceptions will be propagated out to the client.

Specified by:
invoke in interface Invoke
Parameters:
method - The name of the method to be invoked
args - The arguments to be provided to the method
Returns:
The result, if any, returned by the remote procedure call
Throws:
java.lang.Exception - For either network, or server object logic related reasons