Interface LockingData

All Superinterfaces:
HealthCenterData, NotificationBroadcaster, NotificationEmitter
All Known Implementing Classes:
LockingDataImpl

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 Details

    • JAVAMONITORDATA

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

      static final String SYSTEMMONITORDATA
      Used to get only System Monitors Data when comparing against NotificationListener.getUserData()
      See Also:
  • Method Details

    • 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