|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.transport.Connector
Connector is an implementation of the ConnectorMBean interface.
The Connector is root component for the remoting server. It binds the server transport, marshaller,
and handler together to form the remoting server instance.
A transport connector is configured via *-service.xml such as:
Field Summary | |
protected ServerInvoker (src) |
invoker
|
protected Logger (src) |
log
|
Constructor Summary | |
|
Connector()
|
protected |
Connector(boolean isMarshallerConnector)
|
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. |
boolean |
isStarted()
|
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
This method is called by the MBeanServer before registration takes place. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ServerInvoker (src) invoker
protected final Logger (src) log
Constructor Detail |
public Connector()
protected Connector(boolean isMarshallerConnector)
Method Detail |
public boolean isStarted()
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface MBeanRegistration (src)
server
- the MBeanServer the MBean is about to be
registered with.name
- the suggested ObjectName supplied by the
MBeanServer.
java.lang.Exception
- for any error, the MBean is not registered.public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface MBeanRegistration (src)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws java.lang.Exception
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
java.lang.Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration (src)
public void start() throws java.lang.Exception
start
in interface ConnectorMBean (src)
java.lang.Exception
public void stop()
stop
in interface ConnectorMBean (src)
public void create() throws java.lang.Exception
create
in interface ConnectorMBean (src)
java.lang.Exception
public void destroy()
destroy
in interface ConnectorMBean (src)
public InvokerLocator (src) getLocator()
getLocator
in interface ConnectorMBean (src)
public void setInvokerLocator(java.lang.String locator) throws java.lang.Exception
setInvokerLocator
in interface ConnectorMBean (src)
java.lang.Exception
public java.lang.String getInvokerLocator() throws java.lang.Exception
getInvokerLocator
in interface ConnectorMBean (src)
java.lang.Exception
public void setConfiguration(org.w3c.dom.Element xml) throws java.lang.Exception
setConfiguration
in interface ConnectorMBean (src)
java.lang.Exception
public org.w3c.dom.Element getConfiguration()
getConfiguration
in interface ConnectorMBean (src)
public void addInvocationHandler(java.lang.String subsystem, ObjectName (src) handlerObjectName) throws java.lang.Exception
addInvocationHandler
in interface ConnectorMBean (src)
subsystem
- handlerObjectName
-
java.lang.Exception
public void addInvocationHandler(java.lang.String subsystem, ServerInvocationHandler (src) handler) throws java.lang.Exception
addInvocationHandler
in interface ConnectorMBean (src)
java.lang.Exception
public void removeInvocationHandler(java.lang.String subsystem) throws java.lang.Exception
removeInvocationHandler
in interface ConnectorMBean (src)
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |