org.jboss.remoting.transport.rmi
Class RMIClientInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker (src) 
      extended byorg.jboss.remoting.RemoteClientInvoker (src) 
          extended byorg.jboss.remoting.transport.rmi.RMIClientInvoker
All Implemented Interfaces:
ClientInvoker (src) , Invoker (src)

public class RMIClientInvoker
extends RemoteClientInvoker (src)

RMIClientInvoker


Field Summary
 
Fields inherited from class org.jboss.remoting.AbstractInvoker (src)
classbyteloader, localServerLocator, locator, log
 
Constructor Summary
RMIClientInvoker(InvokerLocator (src)  locator)
           
 
Method Summary
protected  java.lang.String getDefaultDataType()
          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.
 RMIServerInvokerInf (src) getServerStub()
          return the RMI server stub
protected  void handleConnect()
          subclasses must implement this method to provide a hook to connect to the remote server, if this applies to the specific transport.
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.
 void setServerStub(RMIServerInvokerInf (src)  server)
          get the server stub
protected  java.lang.Object transport(java.lang.String sessionId, java.lang.Object invocation, java.util.Map metadata, Marshaller (src)  marshaller, UnMarshaller (src)  unmarshaller)
           
 
Methods inherited from class org.jboss.remoting.RemoteClientInvoker (src)
connect, disconnect, finalize, getMarshaller, getUnMarshaller, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller
 
Methods inherited from class org.jboss.remoting.AbstractInvoker (src)
getClassLoader, getClientLocator, getLocator, setClassLoader, setClientLocator
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.transport.ClientInvoker (src)
getClientLocator, setClientLocator
 
Methods inherited from interface org.jboss.remoting.Invoker (src)
getLocator
 

Constructor Detail

RMIClientInvoker

public RMIClientInvoker(InvokerLocator (src)  locator)
Method Detail

setServerStub

public void setServerStub(RMIServerInvokerInf (src)  server)
get the server stub

Parameters:
server -

getServerStub

public RMIServerInvokerInf (src)  getServerStub()
return the RMI server stub

Returns:

handleConnect

protected void handleConnect()
                      throws ConnectionFailedException (src) 
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 (src)
Throws:
ConnectionFailedException (src)

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 (src)

getDefaultDataType

protected java.lang.String getDefaultDataType()
Description copied from class: RemoteClientInvoker (src)
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 (src)
Returns:

transport

protected java.lang.Object transport(java.lang.String sessionId,
                                     java.lang.Object invocation,
                                     java.util.Map metadata,
                                     Marshaller (src)  marshaller,
                                     UnMarshaller (src)  unmarshaller)
                              throws java.io.IOException,
                                     ConnectionFailedException (src) 
Specified by:
transport in class RemoteClientInvoker (src)
Parameters:
sessionId -
invocation -
marshaller -
Returns:
Throws:
java.io.IOException
ConnectionFailedException (src)