org.jboss.remoting
Interface ServerInvokerMBean

All Known Subinterfaces:
SocketServerInvokerMBean, SSLSocketServerInvokerMBean
All Known Implementing Classes:
ServerInvoker, SocketServerInvoker, SSLSocketServerInvoker

public interface ServerInvokerMBean

Author:
Tom Elrod

Method Summary
 void create()
           
 void destroy()
          destory the invoker permanently
 java.lang.String getClientConnectAddress()
           
 int getClientConnectPort()
           
 java.util.Map getConfiguration()
          Gets teh server invoker's transport specific configuration.
 java.lang.String getDataType()
          Will get the data type for the marshaller factory so know which marshaller to get to marshal the data.
 java.lang.String getServerBindAddress()
           
 int getServerBindPort()
           
 int getTimeout()
           
 boolean isStarted()
          return true if the server invoker is started, false if not
 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).
 void setClientConnectAddress(java.lang.String clientConnectAddress)
          This method should only be called by the service controller when this invoker is specified within the Connector configuration of a service xml.
 void setClientConnectPort(int clientConnectPort)
           
 void setConfiguration(java.util.Map configuration)
          Sets the server invoker's transport specific configuration.
 void setTimeout(int timeout)
           
 void start()
          subclasses should override to provide any specific start logic
 void stop()
          subclasses should override to provide any specific stop logic
 

Method Detail

getDataType

public java.lang.String getDataType()
Will get the data type for the marshaller factory so know which marshaller to get to marshal the data. Will first check the locator uri for a 'datatype' parameter and take that value if it exists. Otherwise, will use the default datatype for the client invoker, based on transport.

Returns:

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).

Returns:

create

public void create()

start

public void start()
           throws java.io.IOException
subclasses should override to provide any specific start logic

Throws:
java.io.IOException

isStarted

public boolean isStarted()
return true if the server invoker is started, false if not

Returns:

stop

public void stop()
subclasses should override to provide any specific stop logic


destroy

public void destroy()
destory the invoker permanently


setConfiguration

public void setConfiguration(java.util.Map configuration)
Sets the server invoker's transport specific configuration. Will need to set before calling start() method (or at least stop() and start() again) before configurations will take affect.

Parameters:
configuration -

getConfiguration

public java.util.Map getConfiguration()
Gets teh server invoker's transport specific configuration.

Returns:

getClientConnectAddress

public java.lang.String getClientConnectAddress()

getClientConnectPort

public int getClientConnectPort()

setClientConnectAddress

public void setClientConnectAddress(java.lang.String clientConnectAddress)
This method should only be called by the service controller when this invoker is specified within the Connector configuration of a service xml. Calling this directly will have no effect, as will be used in building the locator uri that is published for detection and this happens when the invoker is first created and started (after that, no one will be aware of a change).


getServerBindAddress

public java.lang.String getServerBindAddress()

getServerBindPort

public int getServerBindPort()

setClientConnectPort

public void setClientConnectPort(int clientConnectPort)

setTimeout

public void setTimeout(int timeout)

getTimeout

public int getTimeout()


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.