|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
Package javax.management.remoteInterfaces for remote access to JMX MBean servers.
See:
Package javax.management.remote Description
Interfaces for remote access to JMX MBean servers. This package defines the essential interfaces for making a JMX MBean server manageable remotely. The specification of this functionality is completed by Part III of the JMX Specification, version 1.4 PDF document. The JMX specification defines the notion of connectors.
A connector is attached to a JMX API MBean server and makes it
accessible to remote Java clients. The client end of a
connector exports essentially the same interface as the MBean
server, specifically the A connector makes an MBean server remotely accessible through a given protocol. The JMX Remote API allows the use of different type of connectors:
Note: the optional packages implementing the optional part of the JMX Remote API are not included in the Java SE Platform but are available from the JMX Remote API Reference Implementation. Connector addressesTypically, a connector server has an address, represented by the
class service:jmx:rmi:///jndi/rmi://myhost:1099/myname In this The example above shows only one form of address.
An address for the RMI Connector can take several forms,
as detailed in the documentation for the package
Creating a connector serverA connector server is created by constructing an instance of
a subclass of Typically, a connector server is associated with an MBean server either by registering it in that MBean server, or by supplying the MBean server as a parameter when creating the connector server. Creating a connector clientA connector client is usually created by supplying the
For more specialized uses, a connector client can be created
by directly instantiating a class that implements the Additional client or server parametersWhen creating a connector client or server, it is possible to
supply an object of type Connection identifiersEvery connection opened by a connector server has a string
identifier, called its connection id. This identifier
appears in the As an example, a connection ID can look something like this: rmi://192.18.1.9 username 1 The formal grammar for connection ids that follow this convention is as follows (using the grammar notation from The Java Language Specification, Second Edition): ConnectionId: Protocol : ClientAddressopt Space ClientIdopt Space ArbitraryText ClientAddress: // HostAddress ClientPortopt ClientPort : HostPort The The The The
Copyright 2003 Sun Microsystems, Inc. All rights reserved
|