Class SystemMonitor

java.lang.Object
com.ibm.j9ddr.vm29.j9.SystemMonitor
All Implemented Interfaces:
Comparable<SystemMonitor>
Direct Known Subclasses:
SystemMonitorSingleTier_V1, SystemMonitorThreeTier_V1

public abstract class SystemMonitor extends Object implements Comparable<SystemMonitor>
  • Field Details

    • monitor

      protected com.ibm.j9ddr.vm29.pointer.generated.J9ThreadMonitorPointer monitor
  • Constructor Details

    • SystemMonitor

      public SystemMonitor()
  • Method Details

    • fromJ9ThreadMonitor

      public static SystemMonitor fromJ9ThreadMonitor(com.ibm.j9ddr.vm29.pointer.generated.J9ThreadMonitorPointer monitor) throws CorruptDataException
      Throws:
      CorruptDataException
    • getRawMonitor

      public com.ibm.j9ddr.vm29.pointer.generated.J9ThreadMonitorPointer getRawMonitor()
    • compareTo

      public int compareTo(SystemMonitor other)
      Description copied from interface: java.lang.Comparable
      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

      The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

      The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

      Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

      Specified by:
      compareTo in interface Comparable<SystemMonitor>
      Parameters:
      other - the object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
    • getOwner

      public com.ibm.j9ddr.vm29.pointer.generated.J9ThreadPointer getOwner() throws CorruptDataException
      Throws:
      CorruptDataException
    • getName

      public String getName()
    • getCount

      public long getCount() throws CorruptDataException
      Throws:
      CorruptDataException
    • isContended

      public abstract boolean isContended() throws CorruptDataException
      Throws:
      CorruptDataException
    • getWaitingThreads

      public abstract List<com.ibm.j9ddr.vm29.pointer.generated.J9ThreadPointer> getWaitingThreads() throws CorruptDataException
      Throws:
      CorruptDataException
    • getBlockedThreads

      public abstract List<com.ibm.j9ddr.vm29.pointer.generated.J9ThreadPointer> getBlockedThreads() throws CorruptDataException
      Throws:
      CorruptDataException