|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.remote.generic.GenericConnector
public class GenericConnector
A client connection to a remote JMX API server. This class can
use a MessageConnection object to specify the transport for
communicating with the server.
User code does not usually instantiate this class. Instead, a
JMXConnectorProvider should be added to the JMXConnectorFactory so that users can implicitly instantiate the
GenericConnector (or a subclass of it) through the JMXServiceURL provided when connecting.
The specific connector protocol to be used by an instance of
this class is specified by attributes in the Map
passed to the constructor or the connect
method. The attribute MESSAGE_CONNECTION is the standard
way to define the transport. An implementation can recognize other
attributes to define the transport differently.
| Field Summary | |
|---|---|
static java.lang.String |
MESSAGE_CONNECTION
Name of the attribute that specifies how this connector sends messages to its connector server. |
static java.lang.String |
OBJECT_WRAPPING
Name of the attribute that specifies the object wrapping for parameters whose deserialization requires special treatment. |
| Fields inherited from interface javax.management.remote.JMXConnector |
|---|
CREDENTIALS |
| Constructor Summary | |
|---|---|
GenericConnector()
Default no-arg constructor. |
|
GenericConnector(java.util.Map env)
Constructor specifying connection attributes. |
|
| Method Summary | |
|---|---|
void |
addConnectionNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
void |
close()
|
void |
connect()
|
void |
connect(java.util.Map env)
|
java.lang.String |
getConnectionId()
|
javax.management.MBeanServerConnection |
getMBeanServerConnection()
|
javax.management.MBeanServerConnection |
getMBeanServerConnection(javax.security.auth.Subject delegationSubject)
|
void |
removeConnectionNotificationListener(javax.management.NotificationListener listener)
|
void |
removeConnectionNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
|
protected void |
sendNotification(javax.management.Notification n)
Send a notification to the connection listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OBJECT_WRAPPING
Name of the attribute that specifies the object wrapping for
parameters whose deserialization requires special treatment.
The value associated with this attribute, if any, must be an
object that implements the interface ObjectWrapping.
public static final java.lang.String MESSAGE_CONNECTION
Name of the attribute that specifies how this connector
sends messages to its connector server. The value associated
with this attribute, if any, must be an object that implements
the interface MessageConnection.
| Constructor Detail |
|---|
public GenericConnector()
Default no-arg constructor.
public GenericConnector(java.util.Map env)
Constructor specifying connection attributes.
env - the attributes of the connection.| Method Detail |
|---|
public void connect()
throws java.io.IOException
connect in interface javax.management.remote.JMXConnectorjava.io.IOException
public void connect(java.util.Map env)
throws java.io.IOException
connect in interface javax.management.remote.JMXConnectorjava.io.IOException
public java.lang.String getConnectionId()
throws java.io.IOException
getConnectionId in interface javax.management.remote.JMXConnectorjava.io.IOException
public javax.management.MBeanServerConnection getMBeanServerConnection()
throws java.io.IOException
getMBeanServerConnection in interface javax.management.remote.JMXConnectorjava.io.IOException
public javax.management.MBeanServerConnection getMBeanServerConnection(javax.security.auth.Subject delegationSubject)
throws java.io.IOException
getMBeanServerConnection in interface javax.management.remote.JMXConnectorjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface javax.management.remote.JMXConnectorjava.io.IOException
public void addConnectionNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
addConnectionNotificationListener in interface javax.management.remote.JMXConnector
public void removeConnectionNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeConnectionNotificationListener in interface javax.management.remote.JMXConnectorjavax.management.ListenerNotFoundException
public void removeConnectionNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.ListenerNotFoundException
removeConnectionNotificationListener in interface javax.management.remote.JMXConnectorjavax.management.ListenerNotFoundExceptionprotected void sendNotification(javax.management.Notification n)
Send a notification to the connection listeners. The
notification will be sent to every listener added with addConnectionNotificationListener that was not subsequently
removed by a removeConnectionNotificationListener,
provided the corresponding NotificationFilter
matches.
n - the notification to send. This will usually be a
JMXConnectionNotification, but an implementation can
send other notifications as well.
|
Open Source build 01-ea opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||