|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.tubs.macs.util.transaction.RunningTable
Running-Table.
Implementation of a special Running-Table for the Transaction-System. This table contains all Transactions, that are currently running/active in this TransactionSystem.
| Constructor Summary | |
(package private) |
RunningTable(TransactionSystem ts)
Instantiates a new Running-Table for use with the TransactionSystem. |
| Method Summary | |
(package private) void |
add(Transaction ta)
Adds a Transaction to the Running-Table. |
boolean |
anyRunning()
Checks if any transaction is running |
(package private) Transaction |
get(java.lang.Long seq)
Retrieves a Transaction out of the Running-Table. |
(package private) java.lang.Object[] |
getAll()
Returns all running Transactions. |
(package private) boolean |
groupRunning(java.lang.String group)
Checks whether a Transaction of the given group is running in the TransactionSystem. |
(package private) boolean |
nameRunning(java.lang.String taName)
Checks whether a Transaction of the given name is running in the TransactionSystem. |
int |
numRunning()
Returns the number of Transactions, that are currently in the RunningTable. |
int |
numRunning(java.lang.String taName)
Returns the number of Transactions with a special name, that are currently in the Running-Table. |
(package private) void |
remove(java.lang.Long seq)
Removes a Transaction from the Running-Table by sequence. |
(package private) void |
remove(Transaction ta)
Removes a Transaction from the Running-Table by class (calls removal by sequence). |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
RunningTable(TransactionSystem ts)
ts - Reference to the TransactionSystem this Running-Table
is used for.| Method Detail |
void add(Transaction ta)
ta - The Transaction, that has to wait or sleep.void remove(Transaction ta)
ta - The Transaction to be removed.void remove(java.lang.Long seq)
seq - Sequence-number of Transaction to be removed.Transaction get(java.lang.Long seq)
seq - Sequence-nr. of the Transaction.java.lang.Object[] getAll()
public boolean anyRunning()
public int numRunning()
public int numRunning(java.lang.String taName)
taName - Name of Transactions to count.boolean nameRunning(java.lang.String taName)
taName - Transaction classname to be checked.boolean groupRunning(java.lang.String group)
group - Transaction group-name to be checked.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||