|
|||||||||
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 completion or compensation action. It associates data 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 |
associateManager(java.lang.Long thread,
DataManager cmp)
This method associates a data manager with a given thread of execution. |
DataManager |
getManager(java.lang.Long thread)
This method returns the data manager object associated to a certain thread of execution. |
static DataManagerProvider |
getSingletonInstance()
Returns the instance of a data manager provider. |
void |
removeManager(java.lang.Long thread)
This method removes the association of a thread and a data 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 associateManager(java.lang.Long thread, DataManager cmp)
thread
- is the thread for which the data manager should be associated.cmp
- is the data manager, which should be associated.public DataManager getManager(java.lang.Long thread)
thread
- thread ID for which the data manager should be returned.
public void removeManager(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 |