com.ibm.java.diagnostics.healthcenter.api.locking

Interface LockingData

  • All Superinterfaces:
    HealthCenterData, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter


    public interface LockingData
    extends HealthCenterData
    This class contains general information about thread locks, or monitors. Health Center can retrieve information about two kinds of monitors: Java and System.
    • Field Detail

      • JAVAMONITORDATA

        static final java.lang.String JAVAMONITORDATA
        Used to get only Java Monitors Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • SYSTEMMONITORDATA

        static final java.lang.String SYSTEMMONITORDATA
        Used to get only System Monitors Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
    • Method Detail

      • getInflatedJavaMonitors

        MonitorData[] getInflatedJavaMonitors()
        Gets an array of MonitorData objects representing locks taken by the application that is being monitored. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MonitorData objects.
      • getInflatedSystemMonitors

        MonitorData[] getInflatedSystemMonitors()
        Gets an array of MonitorData objects representing locks taken by the Java runtime environment. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MonitorData objects.
      • addLockingListener

        void addLockingListener(LockingEventListener listener)
        Add a listener for notification of when a locking event occurs
        Parameters:
        implementation - of the LockingEventListener class
      • removeLockingListener

        void removeLockingListener(LockingEventListener listener)
        Remove one of registered listeners.
        Parameters:
        implementation - of the LockingEventListener class
© Copyright 2012, 2016 IBM Corporation.