|
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 |
DEFAULT_CLASS_LOADER_NAME
Name of the attribute that specifies the default class loader MBean name. |
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 JMXConnectorServer |
newJMXConnectorServer(JMXServiceURL serviceURL,
Map<String,?> environment,
MBeanServer mbeanServer)
Creates a 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 objects in
requests received from the client, possibly after consulting an
MBean-specific class loader. The value associated with this
attribute is an instance of ClassLoader
.
public static final String DEFAULT_CLASS_LOADER_NAME
Name of the attribute that specifies the default class
loader MBean name. This class loader is used to deserialize objects in
requests received from the client, possibly after consulting an
MBean-specific class loader. The value associated with this
attribute is an instance of ObjectName
.
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 JMXConnectorServer newJMXConnectorServer(JMXServiceURL serviceURL, Map<String,?> environment, MBeanServer mbeanServer) throws IOException
Creates a connector server at the given address. The
resultant server is not started until its start
method is called.
serviceURL
- the address of the new connector server. The
actual address of the new connector server, as returned by its
getAddress
method, will
not necessarily be exactly the same. For example, it might
include a port number if the original address did not.environment
- a set of attributes to control the new
connector server's behavior. 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.mbeanServer
- the MBean server that this connector server
is attached to. Null if this connector server will be attached
to an MBean server by being registered in it.
JMXConnectorServer
representing the new
connector server. Each successful call to this method produces
a different object.
NullPointerException
- if serviceURL
is null.
IOException
- if the connector server 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.