|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.txbridge.ba.datamgmt.DataManagerProvider
public class DataManagerProvider
This component is responsible for ensuring that a proper Data Manager is provided during execution of a service or a datamgmt action. It associates datamgmt managers with proper threads of execution.
| Field Summary | |
|---|---|
private static java.util.concurrent.ConcurrentMap<java.lang.Long,DataManager> |
cmList
|
private static DataManagerProvider |
cmp
|
private static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
private |
DataManagerProvider()
|
| Method Summary | |
|---|---|
void |
associateCompensationManager(java.lang.Long thread,
DataManager cmp)
This method associates a datamgmt manager with a given thread of execution. |
DataManager |
getCompensationManager(java.lang.Long thread)
This method returns the datamgmt manager object associated to a certain thread of execution. |
static DataManagerProvider |
getSingletonInstance()
Returns the instance fo a datamgmt manager provider. |
void |
removeCompensationManager(java.lang.Long thread)
This method removes the association of a thread and a datamgmt manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
private static volatile DataManagerProvider cmp
private static java.util.concurrent.ConcurrentMap<java.lang.Long,DataManager> cmList
| Constructor Detail |
|---|
private DataManagerProvider()
| Method Detail |
|---|
public static DataManagerProvider getSingletonInstance()
public void associateCompensationManager(java.lang.Long thread,
DataManager cmp)
thread - is the thread for which the datamgmt manager should be associated.cmp - is the datamgmt manager, which should be associated.public DataManager getCompensationManager(java.lang.Long thread)
thread - thread ID for which the datamgmt manager should be returned.
public void removeCompensationManager(java.lang.Long thread)
thread - is the thread for which the associaction should be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||