org.objectweb.jonas.resource.MCInfo Class Reference

Collaboration diagram for org.objectweb.jonas.resource.MCInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MCInfo (ManagedConnection mc)
String getState (String prefix)
String getState ()
boolean isFreeStmt ()
void destroy () throws Exception
XAResource getXAResource () throws ResourceException

Public Attributes

ManagedConnection mc
Vector usedCs = null
RMEImpl rme = null
boolean rmeCalled = false
boolean localTransaction = false
LocalXAWrapper lw = null
Object ctx
Synchronization synchro = null
Vector pStmts = null
HashSet stmtHash = null
boolean connectionEventListener = false

Detailed Description

A ManagedConnection and its Information

Author:
sebastien.chassande@inrialpes.fr

Eric.Hardesty@bull.com

Definition at line 41 of file MCInfo.java.


Constructor & Destructor Documentation

org.objectweb.jonas.resource.MCInfo.MCInfo ManagedConnection  mc  ) 
 

Constructor for the MCInfo object

Parameters:
mc ManagedConnection to associate with

Definition at line 110 of file MCInfo.java.


Member Function Documentation

void org.objectweb.jonas.resource.MCInfo.destroy  )  throws Exception
 

Fowards the detroy call on the ManagedConnection

Exceptions:
Exception if an Exception occurs

Definition at line 164 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter().

String org.objectweb.jonas.resource.MCInfo.getState  ) 
 

Gets the State attribute of the MCInfo object

Returns:
String current state

Definition at line 144 of file MCInfo.java.

String org.objectweb.jonas.resource.MCInfo.getState String  prefix  ) 
 

Gets the State attribute of the MCInfo object

Parameters:
prefix String to print out
Returns:
The State value

Definition at line 125 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.getState().

XAResource org.objectweb.jonas.resource.MCInfo.getXAResource  )  throws ResourceException
 

Gets the associated XAResource

Returns:
XAResource associated with this object
Exceptions:
ResourceException if an Exception occurs

Definition at line 173 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.RMEImpl.enlistConnection(), and org.objectweb.jonas.resource.ConnectionManagerImpl.registerXAResource().

boolean org.objectweb.jonas.resource.MCInfo.isFreeStmt  ) 
 

Determine if the first pStmt is free to remove

Returns:
boolean if first element is free

Definition at line 152 of file MCInfo.java.


Member Data Documentation

boolean org.objectweb.jonas.resource.MCInfo.connectionEventListener = false
 

Has the ConnectionEventListener been set

Definition at line 104 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), and org.objectweb.jonas.resource.ConnectionManagerImpl.registerXAResource().

Object org.objectweb.jonas.resource.MCInfo.ctx
 

The Context linked to the managedConnection instance There are three state possible global transaction : ctx= the reference to the transaction instance local transaction: ctx=null / localTransaction = true other ctx = null;

Definition at line 80 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.MySynchro.afterCompletion(), org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionErrorOccurred(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().

boolean org.objectweb.jonas.resource.MCInfo.localTransaction = false
 

Is the the managedConnection is inside a local transaction

Definition at line 65 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionStarted().

LocalXAWrapper org.objectweb.jonas.resource.MCInfo.lw = null
 

If local transaction is used, then here is the LocalXAWrapper to use instead of an XA object

Definition at line 71 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection().

ManagedConnection org.objectweb.jonas.resource.MCInfo.mc
 

The managedConnection

Definition at line 45 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.MySynchro.afterCompletion(), org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.JonasSQLWrapper.JonasSQLWrapper(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback(), org.objectweb.jonas.resource.ConnectionManagerImpl.registerXAResource(), and org.objectweb.jonas.resource.ConnectionManagerImpl.returnXAResource().

Vector org.objectweb.jonas.resource.MCInfo.pStmts = null
 

This vector will hold any necessary preparedStatements for this ManagedConnection.

Definition at line 92 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter().

RMEImpl org.objectweb.jonas.resource.MCInfo.rme = null
 

The event used for the later enlisting into transaction

Definition at line 55 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionErrorOccurred(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().

boolean org.objectweb.jonas.resource.MCInfo.rmeCalled = false
 

Has the ResourceManagerEvent Listener been called

Definition at line 60 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionErrorOccurred(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().

HashSet org.objectweb.jonas.resource.MCInfo.stmtHash = null
 

This HashSet contains the currently used preparedStatements for this ManagedConnection.

Definition at line 98 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.MySynchro.afterCompletion(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().

Synchronization org.objectweb.jonas.resource.MCInfo.synchro = null
 

The current Synchronisation object used for the later enlisting into the global transaction

Definition at line 86 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.MySynchro.afterCompletion(), org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback(), org.objectweb.jonas.resource.MySynchro.MySynchro(), and org.objectweb.jonas.resource.ConnectionManagerImpl.registerXAResource().

Vector org.objectweb.jonas.resource.MCInfo.usedCs = null
 

The list of used Connections

Definition at line 50 of file MCInfo.java.

Referenced by org.objectweb.jonas.resource.MySynchro.afterCompletion(), org.objectweb.jonas.resource.ConnectionManagerImpl.allocateConnection(), org.objectweb.jonas.resource.ConnectionManagerImpl.cleanResourceAdapter(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionClosed(), org.objectweb.jonas.resource.ConnectionManagerImpl.connectionErrorOccurred(), org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionCommitted(), and org.objectweb.jonas.resource.ConnectionManagerImpl.localTransactionRolledback().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:22 2005 for JOnAS by  doxygen 1.3.9.1