|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.mcgill.sel.aspectoptimaomtt.interfacing.AspectOPTIMAOMTT
public class AspectOPTIMAOMTT
Constructor Summary | |
---|---|
AspectOPTIMAOMTT()
|
Method Summary | ||
---|---|---|
static boolean |
abortTransactionOfCurrentThread()
Aborts the transaction that is associated to the currently active thread. |
|
static boolean |
abortTransactionOfForeignThread(OMTTThread thread)
Aborts the transaction that is associated to the currently active thread. |
|
static OMTTThread |
beginAndRunTransactionInNewThread(java.lang.Runnable r,
java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested)
Begins an OpenMultithreadedTransaction in a new thread using the passed update strategy and concurrency control mechanism. |
|
static OMTTThread |
beginAndRunTransactionInNewThread(java.lang.Runnable r,
java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested,
int minParticipantCount,
int maxParticipantCount)
Begins an OpenMultithreadedTransaction in a new thread using the passed update strategy and concurrency control mechanism and sets the minimal and maximal number of participants to the provided values. |
|
static boolean |
beginChildTransaction()
Begins a nested OpenMultithreadedTransaction as a child of the OpenMultithreadedTransaction that is associated to the currently active thread using the configuration parameters of the parent transaction. |
|
static boolean |
beginTransactionInCurrentThread(java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested)
Begins an OpenMultithreadedTransaction using the passed update strategy and concurrency control mechanism. |
|
static boolean |
beginTransactionInCurrentThread(java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested,
int minParticipantCount,
int maxParticipantCount)
Begins an OpenMultithreadedTransaction using the passed update strategy and concurrency control mechanism and sets the minimal and maximal number of participants to the provided values. |
|
static OMTTThread |
beginTransactionInNewThread(java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested)
Begins an OpenMultithreadedTransaction in a new thread using the passed update strategy and concurrency control mechanism. |
|
static OMTTThread |
beginTransactionInNewThread(java.lang.String updateStrategy,
java.lang.String concurrencyControl,
boolean nested,
int minParticipantCount,
int maxParticipantCount)
Begins an OpenMultithreadedTransaction in a new thread using the passed update strategy and concurrency control mechanism and sets the minimal and maximal number of participants to the provided values. |
|
static boolean |
commitTransactionOfCurrentAndSpawnedThreads()
Commits the OpenMultithreadedTransaction that is associated to the currently active thread. |
|
static boolean |
commitTransactionOfCurrentThread()
Commits the OpenMultithreadedTransaction that is associated to the currently active thread. |
|
static boolean |
commitTransactionOfForeignThread(OMTTThread thread)
Commits the OpenMultithreadedTransaction that is associated to the thread that is passed as an argument |
|
static
|
getThread(T key)
Returns the thread that is mapped to the passed key. |
|
static boolean |
joinAndRunTransactionWithExistingThread(java.lang.Runnable r,
OMTTThread threadToJoin,
OMTTThread joiningThread)
Lets the thread that is passed as joiningThread join the OpenMultithreadedTransaction of the thread that was passed as threadToJoin. |
|
static boolean |
joinCurrentTransactionWithExistingThread(OMTTThread joiningThread)
Lets the thread that is passed as joiningThread join the OpenMultithreadedTransaction of the currently executing thread. |
|
static boolean |
joinTransactionWithCurrentThread(OMTTThread threadToJoin)
Lets the currently executing thread join the OpenMultithreadedTransaction of the thread that was passed as an argument. |
|
static boolean |
joinTransactionWithExistingThread(OMTTThread threadToJoin,
OMTTThread joiningThread)
Lets the thread that is passed as joiningThread join the OpenMultithreadedTransaction of the thread that was passed as threadToJoin. |
|
static
|
mapKeyToThread(T key,
OMTTThread thread)
Maps the passed key object to the passed thread for futher reference. |
|
static boolean |
run(java.lang.Runnable runnable)
Runs the passed runnable in a new OMTTThread. |
|
static void |
setMinParticipantCountInCurrentThread(int min)
Sets the minimal number of participants that is required to begin a transaction to the passed value for the transaction of the current participant. |
|
static void |
setMinParticipantCountInExistingThread(OMTTThread thread,
int min)
|
|
static OMTTThread |
spawnAndReturnTransactionParticipantFromExistingThread(OMTTThread spawningThread)
Spawns a participant of an OpenMultithreadedTransaction using the transaction that is associated to the thread that was passed as an argument. |
|
static OMTTThread |
spawnAndRunTransactionParticipantFromCurrentThread(java.lang.Runnable r)
Spawns a participant of an OpenMultithreadedTransaction using the transaction that is associated to the currently executing thread. |
|
static void |
spawnRunAndForgetTransactionParticipantFromExistingThread(java.lang.Runnable r,
OMTTThread spawningThread)
Spawns a participant of an OpenMultithreadedTransaction using the transaction that is associated to the thread that was passed as an argument. |
|
static OMTTThread |
spawnRunAndReturnTransactionParticipantFromExistingThread(java.lang.Runnable r,
OMTTThread spawningThread)
Spawns a participant of an OpenMultithreadedTransaction using the transaction that is associated to the thread that was passed as an argument. |
|
static OMTTThread |
spawnTransactionParticipantFromCurrentThread()
Spawns a participant of an OpenMultithreadedTransaction using the transaction that is associated to the currently executing thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AspectOPTIMAOMTT()
Method Detail |
---|
public static boolean abortTransactionOfCurrentThread()
public static boolean abortTransactionOfForeignThread(OMTTThread thread)
public static OMTTThread beginAndRunTransactionInNewThread(java.lang.Runnable r, java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static OMTTThread beginAndRunTransactionInNewThread(java.lang.Runnable r, java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested, int minParticipantCount, int maxParticipantCount)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static boolean beginChildTransaction()
public static boolean beginTransactionInCurrentThread(java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static boolean beginTransactionInCurrentThread(java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested, int minParticipantCount, int maxParticipantCount)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static OMTTThread beginTransactionInNewThread(java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static OMTTThread beginTransactionInNewThread(java.lang.String updateStrategy, java.lang.String concurrencyControl, boolean nested, int minParticipantCount, int maxParticipantCount)
updateStrategy
- "CHECKPOINTING" or "DEFERRING"concurrencyControl
- "TWOPHASELOCKING" or "OPTIMISTICVALIDATION"nested
- whether nested child transactions should be allowed or not
public static boolean commitTransactionOfCurrentAndSpawnedThreads()
public static boolean commitTransactionOfCurrentThread()
public static boolean commitTransactionOfForeignThread(OMTTThread thread)
public static <T> OMTTThread getThread(T key)
public static boolean joinAndRunTransactionWithExistingThread(java.lang.Runnable r, OMTTThread threadToJoin, OMTTThread joiningThread)
threadToJoin
- the thread that is associated to the OpenMultithreadedTransaction that should be joinedjoiningThread
- the thread that should join the OpenMultithreadedTransaction of threadToJoin
public static boolean joinCurrentTransactionWithExistingThread(OMTTThread joiningThread)
joiningThread
- the thread that should join the OpenMultithreadedTransaction of threadToJoin
public static boolean joinTransactionWithCurrentThread(OMTTThread threadToJoin)
threadToJoin
- the thread that is associated to the OpenMultithreadedTransaction that should be joined
public static boolean joinTransactionWithExistingThread(OMTTThread threadToJoin, OMTTThread joiningThread)
threadToJoin
- the thread that is associated to the OpenMultithreadedTransaction that should be joinedjoiningThread
- the thread that should join the OpenMultithreadedTransaction of threadToJoin
public static <T> void mapKeyToThread(T key, OMTTThread thread)
public static boolean run(java.lang.Runnable runnable)
runnable
-
public static void setMinParticipantCountInCurrentThread(int min)
public static void setMinParticipantCountInExistingThread(OMTTThread thread, int min)
public static OMTTThread spawnAndReturnTransactionParticipantFromExistingThread(OMTTThread spawningThread)
public static OMTTThread spawnAndRunTransactionParticipantFromCurrentThread(java.lang.Runnable r)
public static void spawnRunAndForgetTransactionParticipantFromExistingThread(java.lang.Runnable r, OMTTThread spawningThread)
public static OMTTThread spawnRunAndReturnTransactionParticipantFromExistingThread(java.lang.Runnable r, OMTTThread spawningThread)
public static OMTTThread spawnTransactionParticipantFromCurrentThread()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |