|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.services.locks.Timeout
Code to support Timeout error output.
Field Summary | |
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
|
Constructor Summary | |
private |
Timeout(Latch myTimeoutLock,
java.util.Enumeration myLockTable,
long time)
Constructor |
Method Summary | |
(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 |
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
Constructor Detail |
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.Method Detail |
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 cloned
public 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()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |