Class LockInformation

java.lang.Object
org.jppf.management.diagnostics.LockInformation
All Implemented Interfaces:
Serializable

public class LockInformation extends Object implements Serializable
Information about a lock found in a ThreadInformation object. This class is a serializable representation of the JDK's LockInfo and MonitorInfo classes.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • LockInformation

      public LockInformation(String className, int identityHashcode)
      Initialize this lock information object with the specified parameters.
      Parameters:
      className - the fully qualified class name of this lock.
      identityHashcode - the identity hash code of this lock.
    • LockInformation

      public LockInformation(LockInfo lockInfo)
      Initialize this lock information from a LockInfo.
      Parameters:
      lockInfo - the fully qualified class name of this lock.
  • Method Details

    • getClassName

      public String getClassName()
      Get the fully qualified class name of this lock.
      Returns:
      the class name as a string.
    • getIdentityHashcode

      public int getIdentityHashcode()
      Get the identity hash code of this lock.
      Returns:
      the hascode as an int value.
    • toString

      public String toString()
      Overrides:
      toString in class Object