org.jboss.remoting.transport.rmi
Class RMIServerInvoker

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

public class RMIServerInvoker
extends ServerInvoker
implements RMIServerInvokerInf

RMIServerInvoker

Version:
$Revision: 1.13 $
Author:
Jeff Haynie, Tom Elrod

Field Summary
static int DEFAULT_REGISTRY_PORT
           
static String REGISTRY_PORT_KEY
           
 
Fields inherited from class org.jboss.remoting.ServerInvoker
callbackHandlers, handlers, MAX_NUM_ONEWAY_THREADS
 
Fields inherited from class org.jboss.remoting.AbstractInvoker
classbyteloader, localServerLocator, locator, log
 
Constructor Summary
RMIServerInvoker(InvokerLocator locator)
           
RMIServerInvoker(InvokerLocator locator, Map configuration)
           
 
Method Summary
 void destroy()
          destroy the RMI Server Invoker, which will unexport the RMI server
protected  void finalize()
           
protected  String getDefaultDataType()
           
 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).
 Object transport(Object invocation)
          transport a buffer via RMI
 
Methods inherited from class org.jboss.remoting.ServerInvoker
addInvocationHandler, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMBeanObjectName, getMBeanServer, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setConfigration, setMBeanServer, start, stop
 
Methods inherited from class org.jboss.remoting.AbstractInvoker
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

REGISTRY_PORT_KEY

public static final String REGISTRY_PORT_KEY
See Also:
Constant Field Values
Constructor Detail

RMIServerInvoker

public RMIServerInvoker(InvokerLocator locator)
                 throws RemoteException

RMIServerInvoker

public RMIServerInvoker(InvokerLocator locator,
                        Map configuration)
                 throws RemoteException
Method Detail

getDefaultDataType

protected String getDefaultDataType()
Specified by:
getDefaultDataType in class ServerInvoker

destroy

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

Specified by:
destroy in interface ServerInvokerMBean
Overrides:
destroy in class ServerInvoker

finalize

protected void finalize()
                 throws Throwable
Throws:
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
Returns:

getStub

public final RemoteStub getStub()

transport

public Object transport(Object invocation)
                 throws RemoteException,
                        IOException
Description copied from interface: RMIServerInvokerInf
transport a buffer via RMI

Specified by:
transport in interface RMIServerInvokerInf
Parameters:
invocation -
Returns:
Throws:
RemoteException
IOException


Copyright © 2004 JBoss Inc. All Rights Reserved.