Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.management.monitor

Class Monitor

    • Field Detail

      • capacityIncrement

        protected static final int capacityIncrement
        The amount by which the capacity of the monitor arrays are automatically incremented when their size becomes greater than their capacity.
        See Also:
        Constant Field Values
      • elementCount

        protected int elementCount
        The number of valid components in the vector of observed objects.
      • alreadyNotified

        @Deprecated
        protected int alreadyNotified
        Deprecated. equivalent to alreadyNotifieds[0].
        Monitor errors that have already been notified.
      • alreadyNotifieds

        protected int[] alreadyNotifieds

        Selected monitor errors that have already been notified.

        Each element in this array corresponds to an observed object in the vector. It contains a bit mask of the flags OBSERVED_OBJECT_ERROR_NOTIFIED etc, indicating whether the corresponding notification has already been sent for the MBean being monitored.

      • server

        protected MBeanServer server
        Reference to the MBean server. This reference is null when the monitor MBean is not registered in an MBean server. This reference is initialized before the monitor MBean is registered in the MBean server.
        See Also:
        preRegister(MBeanServer server, ObjectName name)
      • RESET_FLAGS_ALREADY_NOTIFIED

        protected static final int RESET_FLAGS_ALREADY_NOTIFIED
        This flag is used to reset the alreadyNotifieds monitor attribute.
        See Also:
        Constant Field Values
      • OBSERVED_OBJECT_ERROR_NOTIFIED

        protected static final int OBSERVED_OBJECT_ERROR_NOTIFIED
        Flag denoting that a notification has occurred after changing the observed object. This flag is used to check that the new observed object is registered in the MBean server at the time of the first notification.
        See Also:
        Constant Field Values
      • OBSERVED_ATTRIBUTE_ERROR_NOTIFIED

        protected static final int OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
        Flag denoting that a notification has occurred after changing the observed attribute. This flag is used to check that the new observed attribute belongs to the observed object at the time of the first notification.
        See Also:
        Constant Field Values
      • OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED

        protected static final int OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
        Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to check that the observed attribute type is correct (depending on the monitor in use) at the time of the first notification.
        See Also:
        Constant Field Values
      • RUNTIME_ERROR_NOTIFIED

        protected static final int RUNTIME_ERROR_NOTIFIED
        Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to notify any exception (except the cases described above) when trying to get the value of the observed attribute at the time of the first notification.
        See Also:
        Constant Field Values
      • dbgTag

        @Deprecated
        protected String dbgTag
        Deprecated. No replacement.
        This field is retained for compatibility but should not be referenced.
    • Constructor Detail

      • Monitor

        public Monitor()
    • Method Detail

      • preRegister

        public ObjectName preRegister(MBeanServer server,
                             ObjectName name)
                               throws Exception
        Allows the monitor MBean to perform any operations it needs before being registered in the MBean server.

        Initializes the reference to the MBean server.

        Specified by:
        preRegister in interface MBeanRegistration
        Parameters:
        server - The MBean server in which the monitor MBean will be registered.
        name - The object name of the monitor MBean.
        Returns:
        The name of the monitor MBean registered.
        Throws:
        Exception
      • postRegister

        public void postRegister(Boolean registrationDone)
        Allows the monitor MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed.

        Not used in this context.

        Specified by:
        postRegister in interface MBeanRegistration
        Parameters:
        registrationDone - Indicates whether or not the MBean has been successfully registered in the MBean server. The value false means that the registration phase has failed.
      • preDeregister

        public void preDeregister()
                           throws Exception
        Allows the monitor MBean to perform any operations it needs before being unregistered by the MBean server.

        Stops the monitor.

        Specified by:
        preDeregister in interface MBeanRegistration
        Throws:
        Exception
      • postDeregister

        public void postDeregister()
        Allows the monitor MBean to perform any operations needed after having been unregistered by the MBean server.

        Not used in this context.

        Specified by:
        postDeregister in interface MBeanRegistration
      • start

        public abstract void start()
        Starts the monitor.
        Specified by:
        start in interface MonitorMBean
      • stop

        public abstract void stop()
        Stops the monitor.
        Specified by:
        stop in interface MonitorMBean
      • removeObservedObject

        public void removeObservedObject(ObjectName object)
        Removes the specified object from the set of observed MBeans.
        Specified by:
        removeObservedObject in interface MonitorMBean
        Parameters:
        object - The object to remove.
      • containsObservedObject

        public boolean containsObservedObject(ObjectName object)
        Tests whether the specified object is in the set of observed MBeans.
        Specified by:
        containsObservedObject in interface MonitorMBean
        Parameters:
        object - The object to check.
        Returns:
        true if the specified object is present, false otherwise.
      • getObservedObjects

        public ObjectName[] getObservedObjects()
        Returns an array containing the objects being observed.
        Specified by:
        getObservedObjects in interface MonitorMBean
        Returns:
        The objects being observed.
      • getGranularityPeriod

        public long getGranularityPeriod()
        Gets the granularity period (in milliseconds).
        The default value of the granularity period is 10 seconds.
        Specified by:
        getGranularityPeriod in interface MonitorMBean
        Returns:
        The granularity period value.
        See Also:
        setGranularityPeriod(long)
      • isActive

        public boolean isActive()
        Tests whether the monitor MBean is active. A monitor MBean is marked active when the start method is called. It becomes inactive when the stop method is called.
        Specified by:
        isActive in interface MonitorMBean
        Returns:
        true if the monitor MBean is active, false otherwise.

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/monitor/monitor.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

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

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.

Inhoudsopgave Haut