Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
javax.management.modelmbean

Class ModelMBeanOperationInfo

  • All Implemented Interfaces:
    Serializable, Cloneable, DescriptorAccess, DescriptorRead

    public class ModelMBeanOperationInfo
    extends MBeanOperationInfo
    implements DescriptorAccess

    The ModelMBeanOperationInfo object describes a management operation of the ModelMBean. It is a subclass of MBeanOperationInfo with the addition of an associated Descriptor and an implementation of the DescriptorAccess interface.

    The fields in the descriptor are defined, but not limited to, the following. Note that when the Type in this table is Number, a String that is the decimal representation of a Long can also be used.

    NameTypeMeaning
    nameString Operation name.
    descriptorTypeString Must be "operation".
    classString Class where method is defined (fully qualified).
    roleString Must be "operation", "getter", or "setter".
    targetObjectObject Object on which to execute this method.
    targetTypeString type of object reference for targetObject. Can be: ObjectReference | Handle | EJBHandle | IOR | RMIReference.
    valueObject Cached value for operation.
    displayNameString Human readable display name of the operation.
    currencyTimeLimitNumber How long cached value is valid.
    lastUpdatedTimeStampNumber When cached value was set.
    visibilityNumber 1-4 where 1: always visible 4: rarely visible.
    presentationStringString XML formatted string to describe how to present operation

    Erste Seite von API Java Inhaltsverzeichnis Haut

    The default descriptor will have name, descriptorType, displayName and role fields set. The default value of the name and displayName fields is the operation name.

    Note: because of inconsistencies in previous versions of this specification, it is recommended not to use negative or zero values for currencyTimeLimit. To indicate that a cached value is never valid, omit the currencyTimeLimit field. To indicate that it is always valid, use a very large number for this field.

    The serialVersionUID of this class is 6532732096650090465L.

    Since:
    1.5
    See Also:
    Serialized Form
    • Constructor Detail

      • ModelMBeanOperationInfo

        public ModelMBeanOperationInfo(String description,
                               Method operationMethod)
        Constructs a ModelMBeanOperationInfo object with a default descriptor. The Descriptor of the constructed object will include fields contributed by any annotations on the Method object that contain the DescriptorKey meta-annotation.
        Parameters:
        operationMethod - The java.lang.reflect.Method object describing the MBean operation.
        description - A human readable description of the operation.
      • ModelMBeanOperationInfo

        public ModelMBeanOperationInfo(String description,
                               Method operationMethod,
                               Descriptor descriptor)
        Constructs a ModelMBeanOperationInfo object. The Descriptor of the constructed object will include fields contributed by any annotations on the Method object that contain the DescriptorKey meta-annotation.
        Parameters:
        operationMethod - The java.lang.reflect.Method object describing the MBean operation.
        description - A human readable description of the operation.
        descriptor - An instance of Descriptor containing the appropriate metadata for this instance of the ModelMBeanOperationInfo. If it is null a default descriptor will be created. If the descriptor does not contain the fields "displayName" or "role", the missing ones are added with their default values.
        Throws:
        RuntimeOperationsException - Wraps an IllegalArgumentException. The descriptor is invalid; or descriptor field "name" is not equal to operation name; or descriptor field "DescriptorType" is not equal to "operation"; or descriptor optional field "role" is present but not equal to "operation", "getter", or "setter".
      • ModelMBeanOperationInfo

        public ModelMBeanOperationInfo(String name,
                               String description,
                               MBeanParameterInfo[] signature,
                               String type,
                               int impact)
        Constructs a ModelMBeanOperationInfo object with a default descriptor.
        Parameters:
        name - The name of the method.
        description - A human readable description of the operation.
        signature - MBeanParameterInfo objects describing the parameters(arguments) of the method.
        type - The type of the method's return value.
        impact - The impact of the method, one of INFO, ACTION, ACTION_INFO, UNKNOWN.
      • ModelMBeanOperationInfo

        public ModelMBeanOperationInfo(String name,
                               String description,
                               MBeanParameterInfo[] signature,
                               String type,
                               int impact,
                               Descriptor descriptor)
        Constructs a ModelMBeanOperationInfo object.
        Parameters:
        name - The name of the method.
        description - A human readable description of the operation.
        signature - MBeanParameterInfo objects describing the parameters(arguments) of the method.
        type - The type of the method's return value.
        impact - The impact of the method, one of INFO, ACTION, ACTION_INFO, UNKNOWN.
        descriptor - An instance of Descriptor containing the appropriate metadata for this instance of the MBeanOperationInfo. If it is null then a default descriptor will be created. If the descriptor does not contain fields "displayName" or "role", the missing ones are added with their default values.
        Throws:
        RuntimeOperationsException - Wraps an IllegalArgumentException. The descriptor is invalid; or descriptor field "name" is not equal to operation name; or descriptor field "DescriptorType" is not equal to "operation"; or descriptor optional field "role" is present but not equal to "operation", "getter", or "setter".
      • ModelMBeanOperationInfo

        public ModelMBeanOperationInfo(ModelMBeanOperationInfo inInfo)
        Constructs a new ModelMBeanOperationInfo object from this ModelMBeanOperation Object.
        Parameters:
        inInfo - the ModelMBeanOperationInfo to be duplicated
    • Method Detail

      • clone

        public Object clone()
        Creates and returns a new ModelMBeanOperationInfo which is a duplicate of this ModelMBeanOperationInfo.
        Overrides:
        clone in class MBeanOperationInfo
        Returns:
        a clone of this instance.
        See Also:
        Cloneable
      • setDescriptor

        public void setDescriptor(Descriptor inDescriptor)
        Sets associated Descriptor (full replace) for the ModelMBeanOperationInfo If the new Descriptor is null, then the associated Descriptor reverts to a default descriptor. The Descriptor is validated before it is assigned. If the new Descriptor is invalid, then a RuntimeOperationsException wrapping an IllegalArgumentException is thrown.
        Specified by:
        setDescriptor in interface DescriptorAccess
        Parameters:
        inDescriptor - replaces the Descriptor associated with the ModelMBeanOperation.
        Throws:
        RuntimeOperationsException - Wraps an IllegalArgumentException for invalid Descriptor.
        See Also:
        getDescriptor()
      • toString

        public String toString()
        Returns a string containing the entire contents of the ModelMBeanOperationInfo in human readable form.
        Overrides:
        toString in class MBeanOperationInfo
        Returns:
        a string representation of the object.

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 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/management/modelmbean/modelmbeanoperationinfo.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

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 Diese 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.

Inhaltsverzeichnis Haut