Previous Topic Next topic Print topic


Class CobolManagedConnection

This class represents a physical connection to an underlying EIS.
java.lang.Object

extended by com.microfocus.cobol.connector.spi.CobolManagedConnection

All Implemented Interfaces

ManagedConnection, Serializable

Class Specifications

public class CobolManagedConnection

extends Object

implements ManagedConnectionFactory, Serializable

See Also:

Serialized Form

Nested Class Summary

Methods

Method Summary
void resetMC()
void setXAConnection(com.microfocus.cobol.connector.ti.XAConnection xa)
void resetXAFlow()
boolean getResetXAFlow()
void setCallerPrincipal(Principal aPrincipal)
void activate()
void passivate()
void setConnection(com.microfocus.cobol.connector.ti.Connection con)
void setSupportsXA(boolean xa)
void setSupportsLocalTx(boolean xa)
void setUser(String user)
void setSubject(Subject sub)
void setManagedConnectionFactory(ManagedConnectionFactory xa)
com.microfocus.cobol.connector.ti.XAConnection getXAConnection()
com.microfocus.cobol.connector.ti.Connection getConnection()
boolean getSupportsXA()
boolean getSupportsLocalTx()
String getUser()
Subject getSubject()
ManagedConnectionFactory getManagedConnectionFactory()
Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
void destroy()
void dispose()
void cleanup()
void associateConnection(Object connection)
void addConnectionEventListener(ConnectionEventListener listener)
void removeConnectionEventListener(ConnectionEventListener listener)
XAResource getXAResource()
LocalTransaction getLocalTransaction()
ManagedConnectionMetaData getMetaData()
void setLogWriter(PrintWriter out)
PrintWriter getLogWriter()
com.microfocus.cobol.connector.ti.Connection getCobolConnection()
com.microfocus.cobol.connector.ti.XAConnection getXACobolConnection()
boolean isDestroyed()
String getUserName()
void sendEvent(int eventType, Exception ex)
void sendEvent(int eventType, Exception ex, Object connectionHandle)
void removeCobolConnection(CobolConnection cciCon)
void addCobolConnection(CobolConnection cciCon)
String getSessionId()
void resetLocalTransaction()
static void addGUID(String GUID)
static void addPhy()
static void deleteGUID(String GUID)
static void deletePhy()
void disconnectConnection(ManagedConnection mc)
static void DisposedCount()
static void dumpGUID()
static long getDispose()
static long getGUIDSCreated()
static long getGUIDSDestroyed()
static long getGUIDSInUse()
static long getGPhyCreated()
static long getPhyDestroyed()
static long getPhyInUse()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

resetMC
public void resetMC()
setXAConnection
public void setXAConnection(com.microfocus.cobol.connector.ti.XAConnection xa)
resetXAFlow
public void resetXAFlow()
getResetXAFlow
public boolean getResetXAFlow()
setCallerPrincipal
public void setCallerPrincipal(Principal aPrincipal)
activate
public void activate()
              throws ResourceException
Throws:
ResourceException
passivate
public void passivate()
               throws ResourceException
Throws:
ResourceException
setConnection
public void setConnection(com.microfocus.cobol.connector.ti.Connection con)
setSupportsXA
public void setSupportsXA(boolean xa)
setSupportsLocalTx
public void setSupportsLocalTx(boolean xa)
setUser
public void setUser (String user)
setSubject
public void setSubject(Subject sub)
setManagedConnectionFactory
public void setManagedConnectionFactory (ManagedConnectionFactory xa)
getXAConnection
public com.microfocus.cobol.connector.ti.XAConnection getXAConnection()
getConnection
public com.microfocus.cobol.connector.ti.Connection getConnection()
getSupportsXA
public boolean getSupportsXA()
getSupportsLocalTx
public boolean getSupportsLocalTx()
getUser
public String getUser()
getSubject
public Subject getSubject()
getManagedConnectionFactory
public ManagedConnectionFactory getManagedConnectionFactory()
getConnection
public Object getConnection(Subject subject,
                            ConnectionRequestInfo connectionRequestInfo)
                     throws ResourceException
Specified by:
getConnection in interface ManagedConnection
Throws:
ResourceException
destroy
public void destroy()
             throws ResourceException
Specified by:
destroy in interface ManagedConnection
Throws:
ResourceException
dispose
public void dispose()
             throws ResourceException
Throws:
ResourceException
cleanup
public void cleanup()
             throws ResourceException
Specified by:
cleanup in interface ManagedConnection
Throws:
ResourceException
associateConnection
public void associateConnection(Object connection)
                         throws ResourceException
Specified by:
associateConnection in interface ManagedConnection
Throws:
ResourceException
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface ManagedConnection
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface ManagedConnection
getXAResource
public XAResource getXAResource()
                         throws ResourceException
Specified by:
getXAResource in interface ManagedConnection
Throws:
ResourceException
getLocalTransaction
public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Specified by:
getLocalTransaction in interface ManagedConnection
Throws:
ResourceException
getMetaData
public ManagedConnectionMetaData getMetaData()
                                      throws ResourceException
Specified by:
getMetaData in interface ManagedConnection
Throws:
ResourceException
setLogWriter
public void setLogWriter(PrintWriter out)
                  throws ResourceException
Specified by:
setLogWriter in interface ManagedConnection
Throws:
ResourceException
getLogWriter
public PrintWriter getLogWriter()
                         throws ResourceException
Specified by:
getLogWriter in interface ManagedConnection
Throws:
ResourceException
getCobolConnection
public com.microfocus.cobol.connector.ti.Connection getCobolConnection()
                                                                throws ResourceException
Throws:
ResourceException
getXACobolConnection
public com.microfocus.cobol.connector.ti.XAConnection getXACobolConnection()
                                                                    throws ResourceException
Throws:
ResourceException
isDestroyed
public boolean isDestroyed()
getUserName
public String getUserName()
sendEvent
public void sendEvent(int eventType,
                      Exception ex)
sendEvent
public void sendEvent(int eventType,
                      Exception ex,
                      Object connectionHandle)
removeCobolConnection
public void removeCobolConnection(CobolConnection cciCon)
addCobolConnection
public void addCobolConnection(CobolConnection cciCon)
getSessionId
public String getSessionId()
                          throws ResourceException
Throws:
ResourceException
resetLocalTransaction
public void resetLocalTransaction()
addGUID
public static void addGUID(String GUID)
addPhy
public static void addPhy()
deleteGUID
public static void deleteGUID(String GUID)
deletePhy
public static void deletePhy()
disconnectConnection
public void disconnectConnection(ManagedConnection mc)
DisposedCount
public static void DisposedCount()
dumpGUID
public static void dumpGUID()
getDispose
public static long getDispose()
getGUIDSCreated
public static long getGUIDSCreated()
getGUIDSDestroyed
public static long getGUIDSDestroyed()
getGUIDSInUse
public static long getGUIDSInUse()
getPhyCreated
public static long getPhyCreated()
getPhyInDestroyed
public static long getPhyInDestroyed()
getPhyInUse
public static long getPhyInUse()
Previous Topic Next topic Print topic