java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.remote.JMXConnectorServer
All Implemented Interfaces:
JMXAddressable, MBeanRegistration, JMXConnectorServerMBean, NotificationEmitter
Direct Known Subclasses:
RMIConnectorServer
Superclass of every connector server. A connector server is attached to an MBean server. It listens for client connection requests and creates a connection for each one.
A connector server is associated with an MBean server either by registering it in that MBean server, or by passing the MBean server to its constructor.
A connector server is inactive when created. It only starts listening for client connections when the start method is called. A connector server stops listening for client connections when the stop method is called or when the connector server is unregistered from its MBean server.
Stopping a connector server does not unregister it from its MBean server. A connector server once stopped cannot be restarted.
Each time a client connection is made or broken, a notification of class JMXConnectionNotification is emitted.
1.5
- Field Summary | ||
---|---|---|
public static final String | AUTHENTICATOR | Name of the attribute that specifies the authenticator for a connector server. The value associated with this attribute, if any, must be an object that implements the interface JMXAuthenticator . |
Constructor: |
---|
Constructs a connector server that will be registered as an
MBean in the MBean server it is attached to. This constructor
is typically called by one of the |
Constructs a connector server that is attached to the given MBean server. A connector server that is created in this way can be registered in a different MBean server, or not registered in any MBean server.
|
Method from javax.management.remote.JMXConnectorServer Summary: |
---|
connectionClosed, connectionFailed, connectionOpened, getConnectionIds, getMBeanServer, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, setMBeanServerForwarder, toJMXConnector |
Methods from javax.management.NotificationBroadcasterSupport: |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.management.remote.JMXConnectorServer Detail: |
---|
Called by a subclass when a client connection is closed
normally. Removes |
Called by a subclass when a client connection fails.
Removes |
Called by a subclass when a new client connection is opened.
Adds |
|
Returns the MBean server that this connector server is attached to. |
Returns an array indicating the notifications that this MBean
sends. The implementation in |
|
|
Called by an MBean server when this connector server is
unregistered from that MBean server. If this connector server
was attached to that MBean server by being registered in it,
and if the connector server is still active,
then unregistering it will call the stop method.
If the |
Called by an MBean server when this connector server is
registered in that MBean server. This connector server becomes
attached to the MBean server and its #getMBeanServer()
method will return If this connector server is already attached to an MBean server, this method has no effect. The MBean server it is attached to is not necessarily the one it is being registered in. |
|
Returns a client stub for this connector server. A client stub is a serializable object whose connect method can be used to make one new connection to this connector server. A given connector need not support the generation of client stubs. However, the connectors specified by the JMX Remote API do (JMXMP Connector and RMI Connector). The default implementation of this method uses #getAddress and JMXConnectorFactory to generate the stub, with code equivalent to the following: JMXServiceURL addr = getAddress() ; return Map) env) ; A connector server for which this is inappropriate must override this method so that it either implements the appropriate logic or throws UnsupportedOperationException . |