public final class RecordLockInfo extends RecordInfo implements java.io.Serializable
The information is read-only, once the object is constructed. It includes the type of lock, the time the lock was acquired, the table name and primary key of the lock, and an array of session IDs of those contexts which currently hold the lock (must be at least one).
Modifier and Type | Field and Description |
---|---|
private java.lang.String[][] |
javaStacktraces
The Java stacktrace associated with each FWD session.
|
private SessionToken[] |
lockers
Session tokens of one or more contexts which hold the lock
|
private StacktraceInfo[][] |
stacktraces
The program traces associated with each FWD session.
|
private long |
timeAcquired
Timestamp (time of epoch) at which lock was acquired
|
private RecordLockType |
type
Lock type
|
Constructor and Description |
---|
RecordLockInfo()
Default constructor
|
RecordLockInfo(RecordLockType type,
long timeAcquired,
java.lang.String databaseName,
java.lang.String tableName,
long recordID,
SessionToken[] lockers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[][] |
getJavaStacktraces()
Get the Java stacktraces for this record lock.
|
SessionToken[] |
getLockers()
Retrieve an array of session tokens which hold this lock.
|
java.lang.String |
getLockersPresentation()
Gets the lockers presentation.
|
StacktraceInfo[][] |
getStacktraces()
Get the program stacktraces for this record lock.
|
long |
getTimeAcquired()
Retrieve the timestamp (time of epoch) at which the lock was acquired.
|
RecordLockType |
getType()
Retrieve the lock type.
|
void |
setJavaStacktraces(java.lang.String[][] stacktraces)
Set the Java stacktraces for this record lock.
|
void |
setLockers(SessionToken[] lockers)
Sets the session tokens of one or more contexts which hold the lock.
|
void |
setStacktraces(StacktraceInfo[][] stacktraces)
Set the program stacktraces for this record lock.
|
void |
setTimeAcquired(long timeAcquired)
Sets the timestamp (time of epoch) at which lock was acquired.
|
void |
setType(RecordLockType type)
Sets the lock type.
|
equals, getDatabaseName, getRecordID, getTableName, hashCode, setDatabaseName, setRecordID, setTableName
private RecordLockType type
private long timeAcquired
private SessionToken[] lockers
private StacktraceInfo[][] stacktraces
private java.lang.String[][] javaStacktraces
public RecordLockInfo()
public RecordLockInfo(RecordLockType type, long timeAcquired, java.lang.String databaseName, java.lang.String tableName, long recordID, SessionToken[] lockers)
type
- Lock type.timeAcquired
- Timestamp (time of epoch) at which lock was acquired.databaseName
- Physical database name.tableName
- Name of table.recordID
- Primary key ID of locked record.lockers
- Session tokens of one or more contexts which hold the lock.public StacktraceInfo[][] getStacktraces()
public void setStacktraces(StacktraceInfo[][] stacktraces)
stacktraces
- The program traces.public java.lang.String[][] getJavaStacktraces()
public void setJavaStacktraces(java.lang.String[][] stacktraces)
stacktraces
- The Java stacktraces.public RecordLockType getType()
public long getTimeAcquired()
public SessionToken[] getLockers()
null
and must contain at least one entry (possibly more for lock
type SHARE
.public void setType(RecordLockType type)
type
- The new lock typepublic void setTimeAcquired(long timeAcquired)
timeAcquired
- The new timestamp (time of epoch) at which lock was acquiredpublic void setLockers(SessionToken[] lockers)
lockers
- The new session tokens of one or more contexts which hold the lockpublic java.lang.String getLockersPresentation()