org.objectweb.jonas.thds
Class ThreadData

java.lang.Object
  |
  +--org.objectweb.jonas.thds.ThreadData
All Implemented Interfaces:
org.objectweb.transaction.api.ResourceManagerEventListener

public class ThreadData
extends java.lang.Object
implements org.objectweb.transaction.api.ResourceManagerEventListener

This object encapsulate a ThreadLocal data that holds the list of connections open by the thread outside any transaction.


Method Summary
 void connectionClosed(org.objectweb.transaction.api.ResourceManagerEvent event)
          connection closed
 void connectionErrorOccured(org.objectweb.transaction.api.ResourceManagerEvent event)
          connection error
 void connectionOpened(org.objectweb.transaction.api.ResourceManagerEvent event)
          connection opened
 java.util.List getConnectionList()
          Get the connectionList for this thread
static ThreadData getInstance()
          Get the unique instance.
 java.util.List setConnectionList(java.util.List list)
          Set the connectionList and return old value.
 void start(javax.naming.Context ctx)
          Start the Service Configuration information is passed thru a Context object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ThreadData getInstance()
Get the unique instance. Create it at first call. Return an interface of the service.

start

public void start(javax.naming.Context ctx)
Start the Service Configuration information is passed thru a Context object.

connectionOpened

public void connectionOpened(org.objectweb.transaction.api.ResourceManagerEvent event)
connection opened
Specified by:
connectionOpened in interface org.objectweb.transaction.api.ResourceManagerEventListener

connectionClosed

public void connectionClosed(org.objectweb.transaction.api.ResourceManagerEvent event)
connection closed
Specified by:
connectionClosed in interface org.objectweb.transaction.api.ResourceManagerEventListener

connectionErrorOccured

public void connectionErrorOccured(org.objectweb.transaction.api.ResourceManagerEvent event)
connection error
Specified by:
connectionErrorOccured in interface org.objectweb.transaction.api.ResourceManagerEventListener

setConnectionList

public java.util.List setConnectionList(java.util.List list)
Set the connectionList and return old value.

getConnectionList

public java.util.List getConnectionList()
Get the connectionList for this thread