Class Timeout

java.lang.Object
org.apache.derby.impl.services.locks.Timeout

public final class Timeout extends Object
Code to support Timeout error output.
  • Field Details

  • Constructor Details

    • Timeout

      private Timeout(Latch myTimeoutLock, Enumeration myLockTable, long time)
      Constructor
      Parameters:
      myTimeoutLock - The Latch that the timeout happened on
      myLockTable -
      time - The time when the lockTable was cloned.
  • Method Details

    • createException

      private StandardException createException()
      createException creates a StandardException based on: currentLock a snapshot of the lockTable
      Returns:
      StandardException The exception with the lockTable snapshot in it
    • buildLockTableString

      private String buildLockTableString() throws StandardException
      buildLockTableString creates a LockTable info String
      Throws:
      StandardException
    • buildException

      static StandardException buildException(Latch timeoutLock, Enumeration table, long time)
      The static entry way to get the LockTable in the system.
      Parameters:
      timeoutLock - The Latch that the timeout happened on
      table - The lockTable
      time - The time when the lockTable was cloned
      Returns:
      StandardException The exception with the lockTable snapshot in it
    • buildString

      public static String buildString(Enumeration table, long time) throws StandardException
      Throws:
      StandardException
    • dumpLock

      private void dumpLock() throws StandardException
      dumpLock puts information about currentLock into currentRow for output later.
      Throws:
      StandardException
    • cpArray

      private void cpArray(String toCp, int start, int end)
      cpArray helps built the output string (outputRow).
      Parameters:
      toCp - the String to be copied into outputRow
      start - the start place
      end - the end place
    • timeoutInfoHash

      private boolean timeoutInfoHash()
      Copies the needed information from currentRow into the StringBuffer for output
      Returns:
      true if successful