|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.adapter.jmx.pool.outbound.ManagedConnectionImpl
public class ManagedConnectionImpl
Manager of a connection.
| Constructor Summary | |
|---|---|
ManagedConnectionImpl(ManagedConnectionFactoryImpl mcfi)
create a new connection manager. |
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Adds a connection event listener to the ManagedConnection instance. |
void |
associateConnection(java.lang.Object connection)
Used by the container to change the association of an application-level connection handle with a ManagedConneciton instance. |
void |
cleanup()
Application server calls this method to force any cleanup on the ManagedConnection instance. |
void |
close(JMXConnectionImpl connectionJMX)
Close the JMX Connection. |
void |
destroy()
Destroys the physical connection to the underlying resource manager. |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Creates a new connection handle for the underlying physical connection represented by the ManagedConnection instance. |
ManagedConnectionFactoryImpl |
getLocalMCFI()
Get the managed factory on which this manager is associated. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
Not implemented. |
java.io.PrintWriter |
getLogWriter()
Not implemented. |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
Not implemented. |
javax.transaction.xa.XAResource |
getXAResource()
Not implemented. |
void |
release(JMXConnectionImpl connectionJMX)
Release the JMX connection. |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Removes an already registered connection event listener from the ManagedConnection instance. |
void |
setLogWriter(java.io.PrintWriter out)
Not implemented. |
void |
signalEvent(int code,
java.lang.Object ch)
Called on event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedConnectionImpl(ManagedConnectionFactoryImpl mcfi)
mcfi - the managed factory on which this manager will be associated| Method Detail |
|---|
public ManagedConnectionFactoryImpl getLocalMCFI()
public void signalEvent(int code,
java.lang.Object ch)
code - the code of the event.ch - the object to handlepublic void release(JMXConnectionImpl connectionJMX)
connectionJMX - JMX connection to releasepublic void close(JMXConnectionImpl connectionJMX)
connectionJMX - the JMX Connection to closepublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionlistener - a new ConnectionEventListener to be registeredManagedConnection.addConnectionEventListener(ConnectionEventListener)
public void associateConnection(java.lang.Object connection)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionconnection - Application-level connection handle
javax.resource.ResourceException - generic exception if operation failsManagedConnection.associateConnection(Object)
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failsManagedConnection.cleanup()
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failedManagedConnection.destroy()
public java.lang.Object getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionsubject - security context as JAAS subjectcxRequestInfo - ConnectionRequestInfo instance
javax.resource.ResourceException - - generic exception if operation failsManagedConnection.getConnection(Subject,
ConnectionRequestInfo)
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failsManagedConnection.getLocalTransaction()
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failsManagedConnection.getLogWriter()
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failsManagedConnection.getMetaData()
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException - generic exception if operation failsManagedConnection.getXAResource()public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionlistener - already registered connection event listener to be
removedManagedConnection.removeConnectionEventListener(ConnectionEventListener)
public void setLogWriter(java.io.PrintWriter out)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionout - Character Output stream to be associated
javax.resource.ResourceException - generic exception if operation failsManagedConnection.setLogWriter(PrintWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||