API java : javax.management.remote


Package javax.management.remote

Interfaces for remote access to JMX MBean servers.

See:
          Description

Interface Summary
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
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
JMXProviderException Exception thrown by JMXConnectorFactory when a provider exists for the required protocol but cannot be used for some reason.
JMXServerErrorException Exception thrown as the result of a remote MBeanServer method invocation when an Error 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 companion document JMX Remote API completes the specification of this interface. It should be available as a PDF document in the same place as this Javadoc specification.

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 defines a standard connector, the RMI Connector, which provides remote access to an MBeanServer through RMI.
The JMX Remote API also defines an optional protocol called JMXMP (JMX Message Protocol). JMXMP is based on serialized Java objects (defined in the optional package javax.management.remote.message) over a TCP connection. The connector that implements this protocol is called the JMXMP Connector. User-defined connector protocols are also possible using the JMXConnectorFactory and, optionally, the Generic Connector (javax.management.remote.generic).

Connector addresses

Typically, a connector has an address, represented by the class JMXServiceURL. An address for the JMXMP Connector looks like this:

  1. service:jmx:jmxmp://myhost:9876

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 a JMXServiceURL 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 JMXConnectorServerMBean#getConnectionIds(), and in the value returned by the client's getConnectionId() method.

Conventionally, a connection ID looks something like this:

  1. jmxmp://clienthost:6789 clientname xxxyyyzzz

The formal grammar for connection ids that follow this convention is as follows (using the grammar notation from The Java Language Specification, Second Edition):

  1. <em>ConnectionId:</em>
  2. <em>Protocol</em> : <em>ClientAddress<sub>opt</sub></em> Space <em>ClientId<sub>opt</sub></em> Space <em>ArbitraryText</em>
  3.  
  4. <em>ClientAddress:</em>
  5. // <em>HostAddress</em> <em>ClientPort<sub>opt</sub></em>
  6.  
  7. <em>ClientPort</em>
  8. : <em>HostPort</em>

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.


Ces informations proviennent du site de http://java.sun.com

Remarques

Contenu

Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :

Quels sont les motivations de cette démarche?

Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.

Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.

Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.

Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.

Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.

Avertissement : Erreurs sur le site de l'infobrol

Sommaire du document

La base de données est temporairement indisponible

Le site rencontre momentanément quelques problèmes...

La base de données est temporairement indisponible (), ce qui explique que de nombreuses fonctions ne soient temporairement pas accessibles (par exemple les liens de navigation, les sommaires, etc.) et que l'affichage des pages soit beaucoup plus lent.

Veuillez réessayer dans quelques minutes (les tests automatiques sont effectués toutes les 15 minutes).

Je vous présente mes excuses pour le désagrément que cela engendre.

Steph.

 

Réseaux sociaux

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.

 

Astuce pour imprimer les couleurs des cellules de tableaux : http://www.gaudry.be/ast-rf-450.html
Aucun commentaire pour cette page

© Ce document issu de l′infobrol est enregistré sous le certificat Cyber PrInterDeposit Digital Numbertection. Enregistrement IDDN n° 5329-8739
Document créé le 01/01/70 &am12Thu, 01 Jan 1970 00:00:00 +0000amvUTC; 00:00, dernière modification le Vendredi 17 Juin 2011, 10:12
Source du document imprimé : http://www.gaudry.be/ Document affiché 0 fois ce mois de Juin.
St.Gaudry©07.01.02
Outils (masquer)
||
Recherche (afficher)
Recherche :

Utilisateur (afficher)

La gestion des membres est momentanement desactivee pour des raisons de maintenance.

Navigation (masquer)
Apparence (afficher)
Stats (afficher)
867 documents
astuces.
niouzes.
definitions.
membres.
2290 messages.

Document genere en :
0,62 seconde
Citation (masquer)
 
l'infobrol
Nous sommes le Vendredi 01 Juin 2012, 23:41, toutes les heures sont au format GMTs