|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.ra.MuleManagedConnection
MuleManagedConnection
TODO
Field Summary | |
protected static Log |
logger
logger used by this class |
Method Summary | |
void |
addConnection(MuleConnection connection)
Associate connection handle with the physical connection. |
void |
addConnectionEventListener(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 ManagedConnection instance. |
void |
cleanup()
Initiates a cleanup of the client-specific state maintained by a ManagedConnection instance. |
void |
destroy()
Destroys the physical connection. |
java.lang.Object |
getConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo connectionRequestInfo)
Creates a new connection handle to the Mail Server represented by the ManagedConnection instance. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
Returns a javax.resource.spi.LocalTransaction instance. |
java.io.PrintWriter |
getLogWriter()
Gets the log writer for this ManagedConnection instance. |
MuleManagedConnectionFactory |
getManagedConnectionFactory()
Returns the ManagedConnectionFactory that created this instance of ManagedConnection. |
ManagedConnectionMetaData |
getMetaData()
Gets the metadata information for this connection's underlying EIS resource manager instance. |
PasswordCredential |
getPasswordCredential()
Gets the password for the user associated with the ManagedConnection instance. |
java.lang.String |
getUsername()
Gets the user name of the user associated with the ManagedConnection instance. |
javax.transaction.xa.XAResource |
getXAResource()
Returns a javax.transaction.xa.XAresource instance. |
void |
removeConnection(MuleConnection connection)
Removes the associated connection handle from the connections set to the physical connection. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes an already registered connection event listener from the ManagedConnection instance. |
void |
setLogWriter(java.io.PrintWriter out)
Sets the log writer for this ManagedConnection instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static transient Log logger
Method Detail |
public java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo connectionRequestInfo) throws ResourceException
subject
- security context as JAAS subjectconnectionRequestInfo
- ConnectionRequestInfo instance
ResourceException
- if the method fails to get a connectionpublic void destroy() throws ResourceException
ResourceException
- if the method fails to destroy the
connectionpublic void cleanup() throws ResourceException
ResourceException
- if the cleanup failspublic void associateConnection(java.lang.Object connection) throws ResourceException
connection
- application-level connection handle
ResourceException
- if the attempt to change the association
failspublic void addConnectionEventListener(ConnectionEventListener listener)
listener
- a new ConnectionEventListener to be registeredpublic void removeConnectionEventListener(ConnectionEventListener listener)
listener
- already registered connection event listener to be
removedpublic javax.transaction.xa.XAResource getXAResource() throws ResourceException
ResourceException
- if transactions are not supportedpublic javax.resource.spi.LocalTransaction getLocalTransaction() throws ResourceException
ResourceException
- if transactions are not supportedpublic ManagedConnectionMetaData getMetaData() throws ResourceException
ResourceException
- if the metadata cannot be retrievedpublic void setLogWriter(java.io.PrintWriter out) throws ResourceException
out
- character output stream to be associated
ResourceException
- if the method failspublic java.io.PrintWriter getLogWriter() throws ResourceException
ResourceException
- if the method failspublic java.lang.String getUsername()
public PasswordCredential getPasswordCredential()
public void addConnection(MuleConnection connection)
connection
- connection handlepublic void removeConnection(MuleConnection connection)
connection
- the connection handlepublic MuleManagedConnectionFactory getManagedConnectionFactory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |