public final class Timeout
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ALL |
|
private static java.lang.String[] |
column |
|
private Latch |
currentLock |
|
private java.util.Hashtable |
currentRow |
|
private long |
currentTime |
|
private static int |
LENGTHOFTABLE |
|
private static char |
LINE |
|
private java.util.Enumeration |
lockTable |
|
static java.lang.String |
newline |
|
private char[] |
outputRow |
|
private java.lang.StringBuffer |
sb |
|
private static char |
SEPARATOR |
|
private TableNameInfo |
tabInfo |
|
static int |
TABLE_AND_ROWLOCK |
|
private TransactionController |
tc |
Modifier | Constructor | Description |
---|---|---|
private |
Timeout(Latch myTimeoutLock,
java.util.Enumeration myLockTable,
long time) |
Constructor
|
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
|
public static final int TABLE_AND_ROWLOCK
public static final int ALL
public static final java.lang.String newline
private TransactionController tc
private TableNameInfo tabInfo
private Latch currentLock
private char[] outputRow
private java.lang.StringBuffer sb
private java.util.Hashtable currentRow
private final long currentTime
private final java.util.Enumeration lockTable
private static final java.lang.String[] column
private static final int LENGTHOFTABLE
private static final char LINE
private static final char SEPARATOR
private Timeout(Latch myTimeoutLock, java.util.Enumeration myLockTable, long time)
myTimeoutLock
- The Latch that the timeout happened onmyLockTable
- time
- The time when the lockTable was cloned.private StandardException createException()
private java.lang.String buildLockTableString() throws StandardException
StandardException
static StandardException buildException(Latch timeoutLock, java.util.Enumeration table, long time)
timeoutLock
- The Latch that the timeout happened ontable
- The lockTabletime
- The time when the lockTable was clonedpublic static java.lang.String buildString(java.util.Enumeration table, long time) throws StandardException
StandardException
private void dumpLock() throws StandardException
StandardException
private void cpArray(java.lang.String toCp, int start, int end)
toCp
- the String to be copied into outputRowstart
- the start placeend
- the end placeprivate boolean timeoutInfoHash()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.