javax.management.remote
Class JMXConnectorServer

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by javax.management.remote.JMXConnectorServer
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, JMXConnectorServerMBean
Direct Known Subclasses:
RMIConnectorServer

public abstract class JMXConnectorServer
extends NotificationBroadcasterSupport
implements JMXConnectorServerMBean, MBeanRegistration

Author:
Tom Elrod

Field Summary
static String AUTHENTICATOR
           
 
Constructor Summary
JMXConnectorServer()
           
JMXConnectorServer(MBeanServer mbeanServer)
           
 
Method Summary
protected  void connectionClosed(String connectionId, String message, Object userData)
           
protected  void connectionFailed(String connectionId, String message, Object userData)
           
protected  void connectionOpened(String connectionId, String message, Object userData)
           
 JMXServiceURL getAddress()
           
 Map getAttributes()
           
 String[] getConnectionIds()
           
 MBeanServer getMBeanServer()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer mbs, ObjectName name)
           
 void setMBeanServerForwarder(MBeanServerForwarder mbsf)
           
 JMXConnector toJMXConnector(Map env)
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.management.remote.JMXConnectorServerMBean
isActive, start, stop
 

Field Detail

AUTHENTICATOR

public static final String AUTHENTICATOR
See Also:
Constant Field Values
Constructor Detail

JMXConnectorServer

public JMXConnectorServer()

JMXConnectorServer

public JMXConnectorServer(MBeanServer mbeanServer)
Method Detail

getMBeanServer

public MBeanServer getMBeanServer()

setMBeanServerForwarder

public void setMBeanServerForwarder(MBeanServerForwarder mbsf)
Specified by:
setMBeanServerForwarder in interface JMXConnectorServerMBean

getConnectionIds

public String[] getConnectionIds()
Specified by:
getConnectionIds in interface JMXConnectorServerMBean

getAddress

public JMXServiceURL getAddress()
Specified by:
getAddress in interface JMXConnectorServerMBean

getAttributes

public Map getAttributes()
Specified by:
getAttributes in interface JMXConnectorServerMBean

toJMXConnector

public JMXConnector toJMXConnector(Map env)
                            throws IOException
Specified by:
toJMXConnector in interface JMXConnectorServerMBean
Throws:
IOException

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface NotificationBroadcaster
Overrides:
getNotificationInfo in class NotificationBroadcasterSupport

connectionOpened

protected void connectionOpened(String connectionId,
                                String message,
                                Object userData)

connectionClosed

protected void connectionClosed(String connectionId,
                                String message,
                                Object userData)

connectionFailed

protected void connectionFailed(String connectionId,
                                String message,
                                Object userData)

preRegister

public ObjectName preRegister(MBeanServer mbs,
                              ObjectName name)
Specified by:
preRegister in interface MBeanRegistration

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.