org.jboss.remoting
Interface ServerInvokerMBean

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

public interface ServerInvokerMBean

Author:
Tom Elrod

Method Summary
 void destroy()
          destory the invoker permanently
 Map getConfiguration()
          Gets teh server invoker's transport specific configuration.
 String getDataType()
          Will get the data type for the marshaller factory so know which marshaller to get to marshal the data.
 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 setConfigration(Map configuration)
          Sets the server invoker's transport specific configuration.
 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 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:

start

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

Throws:
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


setConfigration

public void setConfigration(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 Map getConfiguration()
Gets teh server invoker's transport specific configuration.

Returns:


Copyright © 2004 JBoss Inc. All Rights Reserved.