select * from SYSCS_DIAG.LOCK_TABLE
The LockTable virtual table takes a snap shot of the lock table while the system is in flux, so it is possible that some locks may be in transition state while the snap shot is taken. We choose to do this rather then impose extranous timing restrictions so that the use of this tool will not alter the normal timing and flow of execution in the application.
The LockTable virtual table has the following columns:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALL
return all locks and latches |
| private static final ResultColumnDescriptor[] | |
| private Hashtable | |
| private final int | |
| private boolean | |
| public static final int | LATCH
return only latches |
| private Enumeration | |
| private static final ResultSetMetaData | |
| private TableNameInfo | |
| public static final int | TABLE_AND_ROWLOCK
return only table and row locks |
| private TransactionController | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | LockTable()
The normal way of instantiating a LockTable, equivalent to LockTable(org.apache.derby.diag.LockTable->TABLE_AND_ROWLOCK). |
| public | LockTable(int flag)
This call is intrusive and should only be used under the supervision of technical support. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Releases this |
| private Hashtable | |
| public double | getEstimatedCostPerInstantiation(VTIEnvironment
The state variable for optimizing the Table Function. vtiEnvironment)Implements org. Get the estimated cost for a single instantiation of a Table Function. |
| public double | getEstimatedRowCount(VTIEnvironment
The state variable for optimizing the Table Function. vtiEnvironment)Implements org. Get the estimated row count for a single scan of a Table Function. |
| public ResultSetMetaData | getMetaData()
Overrides org. Implements java. Retrieves the number, types and properties of
this |
| public String | getString(int
the first column is 1, the second is 2, ... columnNumber)Overrides org. Implements java. All columns in TransactionTable VTI are of String type. |
| public boolean | next()
Implements java. Moves the cursor forward one row from its current position. |
| public boolean | Returns: falseThe state variable for optimizing the Table Function. vtiEnvironment)Implements org. Find out if the ResultSet of the Table Function can be instantiated multiple times. |
| public boolean | wasNull()
Overrides org. Implements java. Reports whether
the last column read had a value of SQL |
| ALL | back to summary |
|---|---|
| public static final int ALL return all locks and latches | |
| columnInfo | back to summary |
|---|---|
| private static final ResultColumnDescriptor[] columnInfo | |
| currentRow | back to summary |
|---|---|
| private Hashtable<K, V> currentRow | |
| flag | back to summary |
|---|---|
| private final int flag | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| LATCH | back to summary |
|---|---|
| public static final int LATCH return only latches | |
| lockTable | back to summary |
|---|---|
| private Enumeration<E> lockTable | |
| metadata | back to summary |
|---|---|
| private static final ResultSetMetaData metadata | |
| tabInfo | back to summary |
|---|---|
| private TableNameInfo tabInfo | |
| TABLE_AND_ROWLOCK | back to summary |
|---|---|
| public static final int TABLE_AND_ROWLOCK return only table and row locks | |
| tc | back to summary |
|---|---|
| private TransactionController tc | |
| wasNull | back to summary |
|---|---|
| private boolean wasNull | |
| LockTable | back to summary |
|---|---|
| public LockTable() The normal way of instantiating a LockTable, equivalent to LockTable(org.apache.derby.diag.LockTable->TABLE_AND_ROWLOCK). Only shows row and table lock and not latches. Latches are generally held for very short duration and are not of interest to Derby users. Only under abnormal circumstances will one be interested in looking at latches. | |
| LockTable | back to summary |
|---|---|
| public LockTable(int flag) This call is intrusive and should only be used under the supervision of technical support. Create an instance of the lock table which has transient latches as well as locks. | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Releases this The closing of a
When a Note A
Calling the method
| |
| dumpLock | back to summary |
|---|---|
| private Hashtable Convert the lock information into a hashtable. | |
| getEstimatedCostPerInstantiation | back to summary |
|---|---|
| public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Get the estimated cost for a single instantiation of a Table Function.
| |
| getEstimatedRowCount | back to summary |
|---|---|
| public double getEstimatedRowCount(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Get the estimated row count for a single scan of a Table Function.
| |
| getMetaData | back to summary |
|---|---|
| public ResultSetMetaData getMetaData() Overrides org. Implements java. Doc from java. Retrieves the number, types and properties of
this
| |
| getString | back to summary |
|---|---|
| public String getString(int columnNumber) Overrides org. Implements java. All columns in TransactionTable VTI are of String type.
| |
| next | back to summary |
|---|---|
| public boolean next() throws SQLException Implements java. Doc from java. Moves the cursor forward one row from its current position.
A
When a call to the If an input stream is open for the current row, a call
to the method
| |
| supportsMultipleInstantiations | back to summary |
|---|---|
| public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment) Implements org. Doc from org. Find out if the ResultSet of the Table Function can be instantiated multiple times.
| |
| wasNull | back to summary |
|---|---|
| public boolean wasNull() Overrides org. Implements java. Doc from java. Reports whether
the last column read had a value of SQL
| |