org.exolab.jms.net.rmi
Class RMIInvokerImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--org.exolab.jms.net.rmi.RMIInvokerImpl
- All Implemented Interfaces:
- java.rmi.Remote, RMIInvoker, java.io.Serializable, java.rmi.server.Unreferenced
- public class RMIInvokerImpl
- extends java.rmi.server.RemoteObject
- implements RMIInvoker, java.rmi.server.Unreferenced
Implementation of the RMIInvoker
interface
- Version:
- $Revision: 1.2 $ $Date: 2006/12/16 12:37:17 $
- Author:
- Tim Anderson
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
disconnect()
Notifies that the remote peer is disconnecting. |
java.rmi.MarshalledObject |
invoke(java.rmi.MarshalledObject request)
Invoke a method on a remote object |
void |
ping()
Ping the connection to determine if it is alive |
void |
setConnection(org.exolab.jms.net.rmi.RMIManagedConnection connection)
Set the connection to delegate requests to |
void |
unreferenced()
Called by the RMI runtime sometime after the runtime determines that the
reference list, the list of clients referencing the remote object,
becomes empty. |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RMIInvokerImpl
public RMIInvokerImpl()
- Construct a new
RMIInvokerImpl
setConnection
public void setConnection(org.exolab.jms.net.rmi.RMIManagedConnection connection)
- Set the connection to delegate requests to
- Parameters:
connection
- the connection to delegate requests to
invoke
public java.rmi.MarshalledObject invoke(java.rmi.MarshalledObject request)
throws java.rmi.MarshalException
- Invoke a method on a remote object
- Specified by:
invoke
in interface RMIInvoker
- Parameters:
request
- the wrapped Request
- Returns:
- the result of the invocation
- Throws:
java.rmi.MarshalException
- if the request can't be unmarshalled or the
response can't be marshalled
ping
public void ping()
- Ping the connection to determine if it is alive
- Specified by:
ping
in interface RMIInvoker
- Following copied from interface:
org.exolab.jms.net.rmi.RMIInvoker
- Throws:
java.rmi.RemoteException
- if the handler can't be pinged
disconnect
public void disconnect()
- Notifies that the remote peer is disconnecting.
- Specified by:
disconnect
in interface RMIInvoker
- Following copied from interface:
org.exolab.jms.net.rmi.RMIInvoker
- Throws:
java.rmi.RemoteException
- for any error
unreferenced
public void unreferenced()
- Called by the RMI runtime sometime after the runtime determines that the
reference list, the list of clients referencing the remote object,
becomes empty.
- Specified by:
unreferenced
in interface java.rmi.server.Unreferenced
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.