|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--de.tubs.macs.util.transaction.WaitingTable
Waiting-Table for TransactionSystem.
Implementation of a special Waiting-table for the TransactionSystem.
| Field Summary | |
(package private) static java.lang.String |
THREAD_NAME
Name of the WaitingTable Thread. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY,
values |
| Constructor Summary | |
(package private) |
WaitingTable(TransactionSystem ts)
Instantiates a new Waiting-Table for use with the TransactionSystem. |
| Method Summary | |
(package private) void |
add(Transaction ta)
Adds a Transaction to the Waiting-table. |
(package private) Transaction |
get(java.lang.Long seq)
Retrieves a Transaction out of the Waiting-table. |
(package private) java.lang.Object[] |
getAll()
Returns all waiting/sleeping Transactions. |
(package private) void |
remove(java.lang.Long seq)
Removes a Transaction from the Waiting-table. |
void |
run()
Implementation of run();-method for Waiting-Table-Thread. |
(package private) int |
size()
Returns the number of Transactions in the Waiting-Table. |
(package private) void |
trigger()
Notifies waiting table to look for queueable Transactions again. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
static final java.lang.String THREAD_NAME
| Constructor Detail |
WaitingTable(TransactionSystem ts)
ts - Reference to TransactionSystem this waiting table is
used for.| Method Detail |
void add(Transaction ta)
ta - The Transaction, that has to wait or sleep.void remove(java.lang.Long seq)
seq - Sequence-nr. of Transaction to remove from Waiting-table.Transaction get(java.lang.Long seq)
seq - Sequence-nr. of the Transaction.java.lang.Object[] getAll()
int size()
void trigger()
public void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||