|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectorMBean
MBean interface.
Method Summary | |
---|---|
void |
addConnectionListener(ConnectionListener listener)
Adds a connection listener to receive notification when a client connection is lost or disconnected. |
ServerInvocationHandler |
addInvocationHandler(java.lang.String subsystem,
javax.management.ObjectName handlerObjectName)
Adds a handler to the connector via OjbectName. |
ServerInvocationHandler |
addInvocationHandler(java.lang.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. |
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. |
long |
getLeasePeriod()
Gets the lease period for client connections. |
InvokerLocator |
getLocator()
Returns the locator to the connector. |
void |
removeConnectionListener(ConnectionListener listener)
Removes connection listener from receiving client connection lost/disconnected notifications. |
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 |
setLeasePeriod(long leasePeriodValue)
Sets the lease period for client connections. |
void |
start()
Starts the connector. |
void |
start(boolean runAsNewThread)
Starts the connector. |
void |
stop()
Stops the connector. |
Method Detail |
---|
void start() throws java.lang.Exception
java.lang.Exception
void start(boolean runAsNewThread) throws java.lang.Exception
runAsNewThread
- indicates if should be started on new thread or the current one
java.lang.Exception
void stop()
void create() throws java.lang.Exception
java.lang.Exception
void destroy()
InvokerLocator getLocator()
void setInvokerLocator(java.lang.String locator) throws java.lang.Exception
java.lang.Exception
java.lang.String getInvokerLocator() throws java.lang.Exception
java.lang.Exception
void setConfiguration(org.w3c.dom.Element xml) throws java.lang.Exception
java.lang.Exception
org.w3c.dom.Element getConfiguration()
ServerInvocationHandler addInvocationHandler(java.lang.String subsystem, javax.management.ObjectName handlerObjectName) throws java.lang.Exception
subsystem
- handlerObjectName
-
java.lang.Exception
ServerInvocationHandler addInvocationHandler(java.lang.String subsystem, ServerInvocationHandler handler) throws java.lang.Exception
java.lang.Exception
void removeInvocationHandler(java.lang.String subsystem) throws java.lang.Exception
java.lang.Exception
void addConnectionListener(ConnectionListener listener)
listener
- void removeConnectionListener(ConnectionListener listener)
listener
- void setLeasePeriod(long leasePeriodValue)
leasePeriodValue
- long getLeasePeriod()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |