Class Timeout


  • public final class Timeout
    extends java.lang.Object
    Code to support Timeout error output.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Timeout​(Latch myTimeoutLock, java.util.Enumeration myLockTable, long time)
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static StandardException buildException​(Latch timeoutLock, java.util.Enumeration table, long time)
      The static entry way to get the LockTable in the system.
      private java.lang.String buildLockTableString()
      buildLockTableString creates a LockTable info String
      static java.lang.String buildString​(java.util.Enumeration table, long time)  
      private void cpArray​(java.lang.String toCp, int start, int end)
      cpArray helps built the output string (outputRow).
      private StandardException createException()
      createException creates a StandardException based on: currentLock a snapshot of the lockTable
      private void dumpLock()
      dumpLock puts information about currentLock into currentRow for output later.
      private boolean timeoutInfoHash()
      Copies the needed information from currentRow into the StringBuffer for output
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • currentLock

        private Latch currentLock
      • outputRow

        private char[] outputRow
      • sb

        private java.lang.StringBuffer sb
      • currentRow

        private java.util.Hashtable currentRow
      • currentTime

        private final long currentTime
      • lockTable

        private final java.util.Enumeration lockTable
      • column

        private static final java.lang.String[] column
      • LENGTHOFTABLE

        private static final int LENGTHOFTABLE
    • Constructor Detail

      • Timeout

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

      • 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 java.lang.String buildLockTableString()
                                               throws StandardException
        buildLockTableString creates a LockTable info String
        Throws:
        StandardException
      • buildException

        static StandardException buildException​(Latch timeoutLock,
                                                java.util.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
      • cpArray

        private void cpArray​(java.lang.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