Package gnu.cajo
Class Cajo.Purger
- java.lang.Object
-
- gnu.cajo.Cajo.Purger
-
- All Implemented Interfaces:
Invoke
,java.io.Serializable
,java.rmi.Remote
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector
items
private java.lang.Object
object
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
Purger(java.lang.Object object, java.util.Vector items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
object
private final java.lang.Object object
-
items
private transient java.util.Vector items
-
-
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 interfaceInvoke
- Parameters:
method
- The name of the method to be invokedargs
- 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
-
-