javax.management.j2ee

Interface Management

  • All Superinterfaces:
    EJBObject, Remote

    public interface Management
    extends EJBObject
    The Management interface provides the APIs to navigate and manipulate managed objects. The J2EE Management EJB component (MEJB) must implement this as its remote interface.
    Author:
    Hans Hrasna
    • Method Detail

      • queryNames

        Set queryNames(ObjectName name,
                       QueryExp query)
                throws RemoteException
        Gets the names of managed objects controlled by the MEJB. This method enables any of the following to be obtained: The names of all managed objects, the names of a set of managed objects specified by pattern matching on the ObjectName, a specific managed object name (equivalent to testing whether a managed object is registered). When the object name is null or no domain and key properties are specified, all objects are selected. It returns the set of J2EEObjectNames for the managed objects selected.
        Parameters:
        name - The object name pattern identifying the managed objects to be retrieved. If null or no domain and key properties are specified, all the managed objects registered will be retrieved.
        Returns:
        A set containing the ObjectNames for the managed objects selected. If no managed object satisfies the query, an empty set is returned.
        Throws:
        RemoteException - A communication exception occurred during the execution of a remote method call
      • isRegistered

        boolean isRegistered(ObjectName name)
                      throws RemoteException
        Checks whether a managed object, identified by its object name, is already registered with the MEJB.
        Parameters:
        name - The object name of the managed object to be checked.
        Returns:
        True if the managed object is already registered in the MEJB, false otherwise.
        Throws:
        RemoteException - A communication exception occurred during the execution of a remote method call
      • getMBeanCount

        Integer getMBeanCount()
                       throws RemoteException
        Returns the number of managed objects registered in the MEJB.
        Throws:
        RemoteException - A communication exception occurred during the execution of a remote method call
      • getAttributes

        AttributeList getAttributes(ObjectName name,
                                    String[] attributes)
                             throws InstanceNotFoundException,
                                    ReflectionException,
                                    RemoteException
        Enables the values of several attributes of a named managed object. The managed object is identified by its object name.
        Parameters:
        name - The object name of the managed object from which the attributes are retrieved.
        attributes - A list of the attributes to be retrieved.
        Returns:
        The list of the retrieved attributes.
        Throws:
        InstanceNotFoundException - The managed object specified is not registered in the MEJB.
        ReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
        RemoteException - A communication exception occurred during the execution of a remote method call
      • setAttributes

        AttributeList setAttributes(ObjectName name,
                                    AttributeList attributes)
                             throws InstanceNotFoundException,
                                    ReflectionException,
                                    RemoteException
        Sets the values of several attributes of a named managed object. The managed object is identified by its object name.
        Parameters:
        name - The object name of the managed object within which the attributes are to be set.
        attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to.
        Returns:
        The list of attributes that were set, with their new values.
        Throws:
        InstanceNotFoundException - The managed object specified is not registered in the MEJB.
        ReflectionException - An exception occurred when trying to invoke the setAttributes method of a Dynamic MBean.
        RemoteException - A communication exception occurred during the execution of a remote method call
      • invoke

        Object invoke(ObjectName name,
                      String operationName,
                      Object[] params,
                      String[] signature)
               throws InstanceNotFoundException,
                      MBeanException,
                      ReflectionException,
                      RemoteException
        Invokes an operation on a managed object.
        Parameters:
        name - The object name of the managed object on which the method is to be invoked.
        operationName - The name of the operation to be invoked.
        params - An array containing the parameters to be set when the operation is invoked
        signature - An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the managed object on which the operation was invoked.
        Returns:
        The object returned by the operation, which represents the result of invoking the operation on the managed object specified.
        Throws:
        InstanceNotFoundException - The managed object specified is not registered in the MEJB.
        MBeanException - Wraps an exception thrown by the managed object's invoked method.
        ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method.
        RemoteException - A communication exception occurred during the execution of a remote method call
      • getDefaultDomain

        String getDefaultDomain()
                         throws RemoteException
        Returns the default domain name of this MEJB.
        Throws:
        RemoteException - A communication exception occurred during the execution of a remote method call
      • getListenerRegistry

        ListenerRegistration getListenerRegistry()
                                          throws RemoteException
        Returns the listener registry implementation for this MEJB. The listener registry implements the methods that enable clints to add and remove event notification listeners managed objects
        Returns:
        An implementation of javax.management.j2ee.ListenerRegistration
        Throws:
        RemoteException - A communication exception occurred during the execution of a remote method call

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/management/j2ee/Management.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com, Management (Java(TM) EE 7 Specification APIs)

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.