org.jboss.remoting.transport.rmi
Class RMIClientInvoker
java.lang.Object
org.jboss.remoting.AbstractInvoker
org.jboss.remoting.RemoteClientInvoker
org.jboss.remoting.transport.rmi.RMIClientInvoker
- All Implemented Interfaces:
- ClientInvoker, Invoker
- public class RMIClientInvoker
- extends RemoteClientInvoker
RMIClientInvoker
- Version:
- $Revision: 1.11 $
- Author:
- Jeff Haynie, Tom Elrod
Methods inherited from class org.jboss.remoting.RemoteClientInvoker |
connect, disconnect, finalize, getMarshaller, getUnMarshaller, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller |
RMIClientInvoker
public RMIClientInvoker(InvokerLocator locator)
setServerStub
public void setServerStub(RMIServerInvokerInf server)
- get the server stub
- Parameters:
server
-
getServerStub
public RMIServerInvokerInf getServerStub()
- return the RMI server stub
- Returns:
handleConnect
protected void handleConnect()
throws ConnectionFailedException
- subclasses must implement this method to provide a hook to connect to the remote server, if this applies
to the specific transport. However, in some transport implementations, this may not make must difference since
the connection is not persistent among invocations, such as SOAP. In these cases, the method should
silently return without any processing.
- Specified by:
handleConnect
in class RemoteClientInvoker
- Throws:
ConnectionFailedException
handleDisconnect
protected void handleDisconnect()
- subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies
to the specific transport. However, in some transport implementations, this may not make must difference since
the connection is not persistent among invocations, such as SOAP. In these cases, the method should
silently return without any processing.
- Specified by:
handleDisconnect
in class RemoteClientInvoker
getDefaultDataType
protected String getDefaultDataType()
- Description copied from class:
RemoteClientInvoker
- Each implementation of the remote client invoker should have
a default data type that is uses in the case it is not specified
in the invoker locator uri.
- Specified by:
getDefaultDataType
in class RemoteClientInvoker
- Returns:
transport
protected Object transport(String sessionId,
Object invocation,
Map metadata,
Marshaller marshaller,
UnMarshaller unmarshaller)
throws IOException,
ConnectionFailedException
- Specified by:
transport
in class RemoteClientInvoker
- Parameters:
sessionId
- invocation
- marshaller
-
- Returns:
-
- Throws:
IOException
ConnectionFailedException
Copyright © 2004 JBoss Inc. All Rights Reserved.