org.jboss.remoting.transport.rmi
Class RMIServerInvoker
java.lang.Object
org.jboss.remoting.AbstractInvoker
org.jboss.remoting.ServerInvoker
org.jboss.remoting.transport.rmi.RMIServerInvoker
- All Implemented Interfaces:
- Invoker, java.rmi.Remote, RMIServerInvokerInf, ServerInvokerMBean
- public class RMIServerInvoker
- extends ServerInvoker
- implements RMIServerInvokerInf
RMIServerInvoker
- Version:
- $Revision: 1.6 $
- Author:
- Jeff Haynie, Tom Elrod
Method Summary |
void |
destroy()
destroy the RMI Server Invoker, which will unexport the RMI server |
protected void |
finalize()
|
protected java.lang.String |
getDefaultDataType()
|
java.rmi.Remote |
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). |
protected void |
setup()
|
java.lang.Object |
transport(java.lang.Object invocation)
transport a buffer via RMI |
Methods inherited from class org.jboss.remoting.ServerInvoker |
addInvocationHandler, create, getClientConnectAddress, getClientConnectPort, getConfiguration, getDataType, getInvocationHandler, getInvocationHandlers, getMaxNumberOfOnewayThreads, getMBeanObjectName, getMBeanServer, getOnewayThreadPool, getServerBindAddress, getServerBindPort, getSupportedSubsystems, hasInvocationHandler, invoke, invoke, isStarted, postProcess, preProcess, removeInvocationHandler, setClientConnectAddress, setClientConnectPort, setConfiguration, setMaxNumberOfOnewayThreads, setMBeanServer, setOnewayThreadPool, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_REGISTRY_PORT
public static final int DEFAULT_REGISTRY_PORT
- See Also:
- Constant Field Values
REGISTRY_PORT_KEY
public static final java.lang.String REGISTRY_PORT_KEY
- See Also:
- Constant Field Values
RMIServerInvoker
public RMIServerInvoker(InvokerLocator locator)
RMIServerInvoker
public RMIServerInvoker(InvokerLocator locator,
java.util.Map configuration)
setup
protected void setup()
throws java.lang.Exception
- Overrides:
setup
in class ServerInvoker
- Throws:
java.lang.Exception
getDefaultDataType
protected java.lang.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 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
- Returns:
getStub
public final java.rmi.Remote getStub()
transport
public java.lang.Object transport(java.lang.Object invocation)
throws java.rmi.RemoteException,
java.io.IOException
- Description copied from interface:
RMIServerInvokerInf
- transport a buffer via RMI
- Specified by:
transport
in interface RMIServerInvokerInf
- Parameters:
invocation
-
- Returns:
-
- Throws:
java.rmi.RemoteException
java.io.IOException
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.