org.jboss.remoting.transport
Interface ConnectorMBean

All Known Implementing Classes:
Connector (src)

public interface ConnectorMBean

MBean interface.


Method Summary
 void addInvocationHandler(java.lang.String subsystem, ObjectName (src)  handlerObjectName)
          Adds a handler to the connector via OjbectName.
 void addInvocationHandler(java.lang.String subsystem, ServerInvocationHandler (src)  handler)
          Adds an invocation handler for the named subsystem to the invoker we manage, and sets the mbean server on the invocation handler.
 void create()
          Creates the connector.
 void destroy()
          Destroys the connector.
 org.w3c.dom.Element getConfiguration()
          Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap.
 java.lang.String getInvokerLocator()
          Returns the invoker locator.
 InvokerLocator (src) getLocator()
          Returns the locator to the connector.
 void removeInvocationHandler(java.lang.String subsystem)
          Removes an invocation handler for the supplied subsystem from the invoker we manage, and unsets the MBeanServer on the handler.
 void setConfiguration(org.w3c.dom.Element xml)
          Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap.
 void setInvokerLocator(java.lang.String locator)
          Sets the invoker locator.
 void start()
          Starts the connector.
 void stop()
          Stops the connector.
 

Method Detail

start

public void start()
           throws java.lang.Exception
Starts the connector.

Throws:
java.lang.Exception

stop

public void stop()
Stops the connector.


create

public void create()
            throws java.lang.Exception
Creates the connector.

Throws:
java.lang.Exception

destroy

public void destroy()
Destroys the connector.


getLocator

public InvokerLocator (src)  getLocator()
Returns the locator to the connector. Locator is the actual InvokerLocator object used to identify and get the ServerInvoker we are wrapping.


setInvokerLocator

public void setInvokerLocator(java.lang.String locator)
                       throws java.lang.Exception
Sets the invoker locator. InvokerLocator is the string URI representation of the InvokerLocator used to get and identify the ServerInvoker we are wrapping.

Throws:
java.lang.Exception

getInvokerLocator

public java.lang.String getInvokerLocator()
                                   throws java.lang.Exception
Returns the invoker locator. InvokerLocator is the string URI representation of the InvokerLocator used to get and identify the ServerInvoker we are wrapping.

Throws:
java.lang.Exception

setConfiguration

public void setConfiguration(org.w3c.dom.Element xml)
                      throws java.lang.Exception
Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap. Using mbean subsystems that call registerSubsystem is more flexible.

Throws:
java.lang.Exception

getConfiguration

public org.w3c.dom.Element getConfiguration()
Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap. Using mbean subsystems that call registerSubsystem is more flexible.


addInvocationHandler

public void addInvocationHandler(java.lang.String subsystem,
                                 ObjectName (src)  handlerObjectName)
                          throws java.lang.Exception
Adds a handler to the connector via OjbectName. This will create a mbean proxy of type of ServerInvocationHandler for the MBean specified by object name passed (so has to implement ServerInvocationHandler interface).

Parameters:
subsystem -
handlerObjectName -
Throws:
java.lang.Exception

addInvocationHandler

public void addInvocationHandler(java.lang.String subsystem,
                                 ServerInvocationHandler (src)  handler)
                          throws java.lang.Exception
Adds an invocation handler for the named subsystem to the invoker we manage, and sets the mbean server on the invocation handler.

Throws:
java.lang.Exception

removeInvocationHandler

public void removeInvocationHandler(java.lang.String subsystem)
                             throws java.lang.Exception
Removes an invocation handler for the supplied subsystem from the invoker we manage, and unsets the MBeanServer on the handler.

Throws:
java.lang.Exception