org.jboss.remoting.transport
Interface ConnectorMBean

All Known Implementing Classes:
Connector

public interface ConnectorMBean

MBean interface.


Method Summary
 ServerInvocationHandler addInvocationHandler(String subsystem, javax.management.ObjectName handlerObjectName)
          Adds a handler to the connector via OjbectName.
 ServerInvocationHandler addInvocationHandler(String subsystem, ServerInvocationHandler 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.
 Element getConfiguration()
          Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap.
 String getInvokerLocator()
          Returns the invoker locator.
 InvokerLocator getLocator()
          Returns the locator to the connector.
 void removeInvocationHandler(String subsystem)
          Removes an invocation handler for the supplied subsystem from the invoker we manage, and unsets the MBeanServer on the handler.
 void setConfiguration(Element xml)
          Configuration is an xml element indicating subsystems to be registered with the ServerInvoker we wrap.
 void setInvokerLocator(String locator)
          Sets the invoker locator.
 void start()
          Starts the connector.
 void stop()
          Stops the connector.
 

Method Detail

start

public void start()
           throws Exception
Starts the connector.

Throws:
Exception

stop

public void stop()
Stops the connector.


create

public void create()
            throws Exception
Creates the connector.

Throws:
Exception

destroy

public void destroy()
Destroys the connector.


getLocator

public InvokerLocator 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(String locator)
                       throws 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:
Exception

getInvokerLocator

public String getInvokerLocator()
                         throws 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:
Exception

setConfiguration

public void setConfiguration(Element xml)
                      throws 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:
Exception

getConfiguration

public 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 ServerInvocationHandler addInvocationHandler(String subsystem,
                                                    javax.management.ObjectName handlerObjectName)
                                             throws 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 -
Returns:
The previous ServerInvocationHandler with the same subsystem value (case insensitive), if one existed. Otherwise will return null.
Throws:
Exception

addInvocationHandler

public ServerInvocationHandler addInvocationHandler(String subsystem,
                                                    ServerInvocationHandler handler)
                                             throws Exception
Adds an invocation handler for the named subsystem to the invoker we manage, and sets the mbean server on the invocation handler. Will return previous ServerInvocationHandler with same subsystem value (case insensitive), if one existed. Otherwise will return null.

Throws:
Exception

removeInvocationHandler

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

Throws:
Exception


Copyright © 2004 JBoss Inc. All Rights Reserved.