|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.jca.util.JPPFAccessorImpl
org.jppf.jca.spi.JPPFManagedConnection
public class JPPFManagedConnection
Implementation of the ManagedConnection interface.
| Field Summary |
|---|
| Fields inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
jppfClient, logWriter |
| Constructor Summary | |
|---|---|
JPPFManagedConnection()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Add a listener to the list of connection event listeners for this managed connection. |
void |
associateConnection(Object conn)
Used by the container to change the association of an application-level connection handle with a ManagedConneciton instance. |
void |
cleanup()
This method does nothing. |
void |
destroy()
This method does nothing. |
void |
fireConnectionEvent(JPPFConnection connection,
int eventId,
Exception exception)
Fire a connection event with the specified parameters. |
Object |
getConnection(Subject subject,
ConnectionRequestInfo cri)
Get a connection. |
LocalTransaction |
getLocalTransaction()
Not supported. |
ManagedConnectionMetaData |
getMetaData()
Get this maaged conenction's metadata. |
XAResource |
getXAResource()
Not supported. |
boolean |
isAvailable()
Determine whether this managed connection is available and can be reused by the application server. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Remove a listener from the list of connection event listeners for this managed connection. |
| Methods inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
getJppfClient, getLogWriter, setJppfClient, setLogWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.resource.spi.ManagedConnection |
|---|
getLogWriter, setLogWriter |
| Constructor Detail |
|---|
public JPPFManagedConnection()
| Method Detail |
|---|
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface ManagedConnectionlistener - the listener to add.ManagedConnection.addConnectionEventListener(javax.resource.spi.ConnectionEventListener)public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface ManagedConnectionlistener - the listener to remove.ManagedConnection.removeConnectionEventListener(javax.resource.spi.ConnectionEventListener)
public void fireConnectionEvent(JPPFConnection connection,
int eventId,
Exception exception)
connection - the connection from which the event originates.eventId - the type of event.exception - an eventual exception that should be part of the event. May be null.
public void associateConnection(Object conn)
throws ResourceException
associateConnection in interface ManagedConnectionconn - the new conenction to associate.
ResourceException - if the association raised an error.ManagedConnection.associateConnection(java.lang.Object)
public void cleanup()
throws ResourceException
cleanup in interface ManagedConnectionResourceException - .ManagedConnection.cleanup()
public void destroy()
throws ResourceException
destroy in interface ManagedConnectionResourceException - .ManagedConnection.destroy()
public Object getConnection(Subject subject,
ConnectionRequestInfo cri)
throws ResourceException
getConnection in interface ManagedConnectionsubject - not used.cri - not used.
JPPFConnection instance.
ResourceException - if the connection could not be obtained.ManagedConnection.getConnection(javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)
public LocalTransaction getLocalTransaction()
throws ResourceException
getLocalTransaction in interface ManagedConnectionResourceException - always.ManagedConnection.getLocalTransaction()
public ManagedConnectionMetaData getMetaData()
throws ResourceException
getMetaData in interface ManagedConnectionJPPFManagedConnectionMetaData instance.
ResourceException - if the metadata could not be obtained.ManagedConnection.getMetaData()
public XAResource getXAResource()
throws ResourceException
getXAResource in interface ManagedConnectionResourceException - always.ManagedConnection.getXAResource()public boolean isAvailable()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||