|
|||||||||||
PREV CLASS NEXT CLASS | 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 |
invoker
|
protected org.jboss.logging.Logger |
log
|
Constructor Summary | |
|
Connector()
|
protected |
Connector(boolean isMarshallerConnector)
|
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. |
ServerInvocationHandler[] |
getInvocationHandlers()
Will get array of all the handlers registered with the connector's server invoker. |
String |
getInvokerLocator()
Returns the invoker locator. |
InvokerLocator |
getLocator()
Returns the locator to the connector. |
boolean |
isStarted()
|
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(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. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
This method is called by the MBeanServer before registration takes place. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ServerInvoker invoker
protected final org.jboss.logging.Logger log
Constructor Detail |
public Connector()
protected Connector(boolean isMarshallerConnector)
Method Detail |
public boolean isStarted()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws 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 javax.management.MBeanRegistration
server
- the MBeanServer the MBean is about to be
registered with.name
- the suggested ObjectName supplied by the
MBeanServer.
Exception
- for any error, the MBean is not registered.public void postRegister(Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws 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 javax.management.MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void start() throws Exception
start
in interface ConnectorMBean
Exception
public void stop()
stop
in interface ConnectorMBean
public void create() throws Exception
create
in interface ConnectorMBean
Exception
public void destroy()
destroy
in interface ConnectorMBean
public ServerInvocationHandler[] getInvocationHandlers()
public InvokerLocator getLocator()
getLocator
in interface ConnectorMBean
public void setInvokerLocator(String locator) throws Exception
setInvokerLocator
in interface ConnectorMBean
Exception
public String getInvokerLocator() throws Exception
getInvokerLocator
in interface ConnectorMBean
Exception
public void setConfiguration(Element xml) throws Exception
setConfiguration
in interface ConnectorMBean
Exception
public Element getConfiguration()
getConfiguration
in interface ConnectorMBean
public ServerInvocationHandler addInvocationHandler(String subsystem, javax.management.ObjectName handlerObjectName) throws Exception
addInvocationHandler
in interface ConnectorMBean
subsystem
- handlerObjectName
-
Exception
public ServerInvocationHandler addInvocationHandler(String subsystem, ServerInvocationHandler handler) throws Exception
addInvocationHandler
in interface ConnectorMBean
Exception
public void removeInvocationHandler(String subsystem) throws Exception
removeInvocationHandler
in interface ConnectorMBean
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |