ilog.rules.monitor.model

Class IlrExecutionPoint

  • java.lang.Object
    • ilog.rules.monitor.model.IlrExecutionPoint
  • All Implemented Interfaces:
    java.lang.Comparable<IlrExecutionPoint>


    public final class IlrExecutionPoint
    extends java.lang.Object
    implements java.lang.Comparable<IlrExecutionPoint>
    Represents an association between the code location and a particular snapshot. It associates a java.util.Date and a IlrThread and its stack trace related to a code location. Note: this class has a natural ordering that is inconsistent with equals.
    Since:
    JRules 7.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int compareTo(IlrExecutionPoint o)
      Note: this class has a natural ordering that is inconsistent with equals and hashCode. Equivalent to this.getDate() - o.getDate()
      boolean equals(java.lang.Object o) 
      long getDate()
      Gets the time when the contention has been detected.
      java.lang.String getLockDescription()
      Returns the String representation of the monitor lock that the thread is blocked to enter or waiting to be notified through the Object.wait() method.
      java.util.Iterator<IlrStackElement> getStackBlocked()
      Gets the stack trace of the thread blocked.
      java.util.Iterator<IlrStackElement> getStackOwner()
      Gets the stack trace of the thread owner of the lock if any.
      IlrThread getThreadBlocked()
      Gets the thread in the Thread.State monitored.
      IlrThread getThreadOwner()
      Gets the thread that ownes the lock if any.
      int hashCode() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getThreadBlocked

        public IlrThread getThreadBlocked()
        Gets the thread in the Thread.State monitored.
        Returns:
        an IlrThread. It is never null.
      • getThreadOwner

        public IlrThread getThreadOwner()
        Gets the thread that ownes the lock if any.
        Returns:
        an IlrThread. It could be null.
      • getDate

        public long getDate()
        Gets the time when the contention has been detected.
        Returns:
        a reference time in nanosecond. It is never null.
        See Also:
        System.nanoTime()
      • getLockDescription

        public java.lang.String getLockDescription()
        Returns the String representation of the monitor lock that the thread is blocked to enter or waiting to be notified through the Object.wait() method. The returned String representation of a monitor lock consists of the name of the class of which the object is an instance, the at-sign, and the unsigned hexadecimal representation of the identity hash code of the object. This method returns a string equals to the value of : lock.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(lock)) where the lock is the monitor lock object.
        Returns:
        the string representation of the monitor lock if any. Could be null.
      • getStackOwner

        public java.util.Iterator<IlrStackElement> getStackOwner()
        Gets the stack trace of the thread owner of the lock if any.
        Returns:
        an iterator over IlrStackElement. Could be null.
      • getStackBlocked

        public java.util.Iterator<IlrStackElement> getStackBlocked()
        Gets the stack trace of the thread blocked.
        Returns:
        an iterator over IlrStackElement. Never null.
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(IlrExecutionPoint o)
        Note: this class has a natural ordering that is inconsistent with equals and hashCode. Equivalent to this.getDate() - o.getDate()
        Specified by:
        compareTo in interface java.lang.Comparable<IlrExecutionPoint>

© Copyright IBM Corp. 1987, 2017