org.jboss.remoting.transport.rmi
Class RMIServerInvoker

java.lang.Object
  extended byorg.jboss.remoting.AbstractInvoker (src) 
      extended byorg.jboss.remoting.ServerInvoker (src) 
          extended byorg.jboss.remoting.transport.rmi.RMIServerInvoker
All Implemented Interfaces:
Invoker (src) , java.rmi.Remote, RMIServerInvokerInf (src) , ServerInvokerMBean (src)

public class RMIServerInvoker
extends ServerInvoker (src)
implements RMIServerInvokerInf (src)

RMIServerInvoker


Field Summary
static int DEFAULT_REGISTRY_PORT
           
static java.lang.String REGISTRY_PORT_KEY
           
 
Fields inherited from class org.jboss.remoting.ServerInvoker (src)
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS
 
Fields inherited from class org.jboss.remoting.AbstractInvoker (src)
classbyteloader, localServerLocator, locator, log
 
Constructor Summary
RMIServerInvoker(InvokerLocator (src)  locator)
           
RMIServerInvoker(InvokerLocator (src)  locator, java.util.Map configuration)
           
 
Method Summary
 void destroy()
          destroy the RMI Server Invoker, which will unexport the RMI server
protected  void finalize()
           
protected  java.lang.String getDefaultDataType()
           
 java.lang.String getMBeanObjectName()
          Returns the String for the object name to be used for the invoker.
 java.rmi.server.RemoteStub getStub()
           
 boolean isTransportBiDirectional()
          returns true if the transport is bi-directional in nature, for example, SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example).
 java.lang.Object transport(java.lang.Object invocation)
          transport a buffer via RMI
 
Methods inherited from class org.jboss.remoting.ServerInvoker (src)
addInvocationHandler, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer, start, stop
 
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
 

Field Detail

DEFAULT_REGISTRY_PORT

public static final int DEFAULT_REGISTRY_PORT
See Also:
Constant Field Values (src)

REGISTRY_PORT_KEY

public static final java.lang.String REGISTRY_PORT_KEY
See Also:
Constant Field Values (src)
Constructor Detail

RMIServerInvoker

public RMIServerInvoker(InvokerLocator (src)  locator)
                 throws java.rmi.RemoteException

RMIServerInvoker

public RMIServerInvoker(InvokerLocator (src)  locator,
                        java.util.Map configuration)
                 throws java.rmi.RemoteException
Method Detail

getDefaultDataType

protected java.lang.String getDefaultDataType()
Specified by:
getDefaultDataType in class ServerInvoker (src)

destroy

public void destroy()
destroy the RMI Server Invoker, which will unexport the RMI server

Specified by:
destroy in interface ServerInvokerMBean (src)
Overrides:
destroy in class ServerInvoker (src)

getMBeanObjectName

public java.lang.String getMBeanObjectName()
Description copied from class: ServerInvoker (src)
Returns the String for the object name to be used for the invoker.

Specified by:
getMBeanObjectName in class ServerInvoker (src)
Returns:

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

isTransportBiDirectional

public boolean isTransportBiDirectional()
returns true if the transport is bi-directional in nature, for example, SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example).

Specified by:
isTransportBiDirectional in interface ServerInvokerMBean (src)
Returns:

getStub

public final java.rmi.server.RemoteStub getStub()

transport

public java.lang.Object transport(java.lang.Object invocation)
                           throws java.rmi.RemoteException,
                                  java.io.IOException
Description copied from interface: RMIServerInvokerInf (src)
transport a buffer via RMI

Specified by:
transport in interface RMIServerInvokerInf (src)
Parameters:
invocation -
Returns:
Throws:
java.rmi.RemoteException
java.io.IOException