|
Préférences
Moteurs de recherche
|
|||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.management.remote
|
Field Summary | |
---|---|
static String |
DEFAULT_CLASS_LOADER
Name of the attribute that specifies the default class loader. |
static String |
PROTOCOL_PROVIDER_CLASS_LOADER
Name of the attribute that specifies the class loader for loading protocol providers. |
static String |
PROTOCOL_PROVIDER_PACKAGES
Name of the attribute that specifies the provider packages that are consulted when looking for the handler for a protocol. |
Method Summary | |
---|---|
static JMXConnector |
connect(JMXServiceURL serviceURL)
Creates a connection to the connector server at the given address. |
static JMXConnector |
connect(JMXServiceURL serviceURL,
Map<String,?> environment)
Creates a connection to the connector server at the given address. |
static JMXConnector |
newJMXConnector(JMXServiceURL serviceURL,
Map<String,?> environment)
Creates a connector client for the connector server at the given address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CLASS_LOADER
Name of the attribute that specifies the default class
loader. This class loader is used to deserialize return values and
exceptions from remote MBeanServerConnection
calls. The value associated with this attribute is an instance
of ClassLoader
.
public static final String PROTOCOL_PROVIDER_PACKAGES
Name of the attribute that specifies the provider packages
that are consulted when looking for the handler for a protocol.
The value associated with this attribute is a string with
package names separated by vertical bars (|
).
public static final String PROTOCOL_PROVIDER_CLASS_LOADER
Name of the attribute that specifies the class
loader for loading protocol providers.
The value associated with this attribute is an instance
of ClassLoader
.
Method Detail |
---|
public static JMXConnector connect(JMXServiceURL serviceURL) throws IOException
Creates a connection to the connector server at the given address.
This method is equivalent to connect(serviceURL, null)
.
serviceURL
- the address of the connector server to
connect to.
JMXConnector
whose connect
method has been called.
NullPointerException
- if serviceURL
is null.
IOException
- if the connector client or the
connection cannot be made because of a communication problem.
SecurityException
- if the connection cannot be made
for security reasons.public static JMXConnector connect(JMXServiceURL serviceURL, Map<String,?> environment) throws IOException
Creates a connection to the connector server at the given address.
This method is equivalent to:
JMXConnector conn = JMXConnectorFactory.newJMXConnector(serviceURL, environment); conn.connect(environment);
serviceURL
- the address of the connector server to connect to.environment
- a set of attributes to determine how the
connection is made. This parameter can be null. Keys in this
map must be Strings. The appropriate type of each associated
value depends on the attribute. The contents of
environment
are not changed by this call.
JMXConnector
representing the newly-made
connection. Each successful call to this method produces a
different object.
NullPointerException
- if serviceURL
is null.
IOException
- if the connector client or the
connection cannot be made because of a communication problem.
SecurityException
- if the connection cannot be made
for security reasons.public static JMXConnector newJMXConnector(JMXServiceURL serviceURL, Map<String,?> environment) throws IOException
Creates a connector client for the connector server at the
given address. The resultant client is not connected until its
connect
method is called.
serviceURL
- the address of the connector server to connect to.environment
- a set of attributes to determine how the
connection is made. This parameter can be null. Keys in this
map must be Strings. The appropriate type of each associated
value depends on the attribute. The contents of
environment
are not changed by this call.
JMXConnector
representing the new
connector client. Each successful call to this method produces
a different object.
NullPointerException
- if serviceURL
is null.
IOException
- if the connector client cannot be made
because of a communication problem.
MalformedURLException
- if there is no provider for the
protocol in serviceURL
.
JMXProviderException
- if there is a provider for the
protocol in serviceURL
but it cannot be used for
some reason.