Package javax. management. remote
See: Description
-
Interface Summary Interface Description JMXAddressable Implemented by objects that can have aJMXServiceURL
address.JMXAuthenticator Interface to define how remote credentials are converted into a JAAS Subject.JMXConnector The client end of a JMX API connector.JMXConnectorProvider A provider for creating JMX API connector clients using a given protocol.JMXConnectorServerMBean MBean interface for connector servers.JMXConnectorServerProvider A provider for creating JMX API connector servers using a given protocol.MBeanServerForwarder An object of this class implements the MBeanServer interface and wraps another object that also implements that interface. -
Class Summary Class Description JMXConnectionNotification Notification emitted when a client connection is opened or closed or when notifications are lost.JMXConnectorFactory Factory to create JMX API connector clients.JMXConnectorServer Superclass of every connector server.JMXConnectorServerFactory Factory to create JMX API connector servers.JMXPrincipal The identity of a remote client of the JMX Remote API.JMXServiceURL The address of a JMX API connector server.NotificationResult Result of a query for buffered notifications.SubjectDelegationPermission Permission required by an authentication identity to perform operations on behalf of an authorization identity.TargetedNotification A (Notification, Listener ID) pair. -
Exception Summary Exception Description JMXProviderException Exception thrown byJMXConnectorFactory
andJMXConnectorServerFactory
when a provider exists for the required protocol but cannot be used for some reason.JMXServerErrorException Exception thrown as the result of a remoteMBeanServer
method invocation when anError
is thrown while processing the invocation in the remote MBean server.
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 MBeanServerConnection
interface.
A connector makes an MBean server remotely accessible through a given protocol. The JMX Remote API allows the use of different type of connectors:
- The JMX Remote API defines a standard connector, the RMI Connector, which provides remote access to an MBeanServer through RMI.
- The JMX Remote API also defines an optional connector called JMXMP Connector implementing the JMX Message Protocol (JMXMP). As it is optional, it is not part of this bundle (see note below).
- User-defined connector protocols are also possible using the
JMXConnectorFactory
and, optionally, the Generic Connector (not part of this bundle, see note below).
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 addresses
Typically, a connector server has an address, represented by the
class JMXServiceURL
. An address for the RMI Connector can look
like this:
service:jmx:rmi:///jndi/rmi://myhost:1099/myname
In this JMXServiceURL
, the first rmi:
specifies the RMI connector, while the second rmi:
specifies the RMI registry into which the RMI connector server
has stored its stub.
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
.javax.management.remote.rmi
Creating a connector server
A connector server is created by constructing an instance of
a subclass of JMXConnectorServer
. Usually, this instance is created
using the method JMXConnectorServerFactory.newJMXConnectorServer
.
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 client
A connector client is usually created by supplying the
JMXServiceURL
of the connector server to connect to
to the JMXConnectorFactory.connect
method.
For more specialized uses, a connector client can be created
by directly instantiating a class that implements the JMXConnector
interface,
for example the class RMIConnector
.
Additional client or server parameters
When creating a connector client or server, it is possible to
supply an object of type Map
that defines
additional parameters. Each entry in this Map has a key that is
a string and an associated value whose type is appropriate for
that key. The standard keys defined by the JMX Remote API all
begin with the string "jmx.remote.
". The document
JMX Remote API lists these standard keys.
Connection identifiers
Every connection opened by a connector server has a string
identifier, called its connection id. This identifier
appears in the JMXConnectionNotification
events emitted by the connector
server, in the list returned by getConnectionIds()
, and in the value
returned by the client's getConnectionId()
method.
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 section 2.4 of The Java™ Language Specification):
ConnectionId: Protocol : ClientAddressopt Space ClientIdopt Space ArbitraryText ClientAddress: // HostAddress ClientPortopt ClientPort : HostPort
The Protocol
is a protocol that would
be recognized by JMXConnectorFactory
.
The ClientAddress
is the
address and port of the connecting client, if these can be
determined, otherwise nothing. The
HostAddress
is the Internet address of
the host that the client is connecting from, in numeric or DNS
form. Numeric IPv6 addresses are enclosed in square brackets
[]
. The HostPort
is the
decimal port number that the client is connecting from.
The ClientId
is the identity of the
client entity, typically a string returned by JMXPrincipal.getName()
. This string must not contain
spaces.
The ArbitraryText
is any additional
text that the connector server adds when creating the client id.
At a minimum, it must be enough to distinguish this connection
ID from the ID of any other connection currently opened by this
connector server.
- Since:
- 1.5
- See Also:
- Java Platform documentation on JMX technology, in particular the JMX Specification, version 1.4
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/management/remote/package-summary.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.