|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.ra.MuleManagedConnection
MuleManagedConnection TODO
| 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(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. |
Object |
getConnection(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. |
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. |
String |
getUsername()
Gets the user name of the user associated with the ManagedConnection instance. |
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(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 |
| Method Detail |
public Object getConnection(Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
subject - security context as JAAS subjectconnectionRequestInfo - ConnectionRequestInfo instance
ResourceException - if the method fails to get a connection
public void destroy()
throws ResourceException
ResourceException - if the method fails to destroy the connection
public void cleanup()
throws ResourceException
ResourceException - if the cleanup fails
public void associateConnection(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 removed
public XAResource getXAResource()
throws ResourceException
ResourceException - if transactions are not supported
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws ResourceException
ResourceException - if transactions are not supported
public ManagedConnectionMetaData getMetaData()
throws ResourceException
ResourceException - if the metadata cannot be retrieved
public void setLogWriter(PrintWriter out)
throws ResourceException
out - character output stream to be associated
ResourceException - if the method fails
public PrintWriter getLogWriter()
throws ResourceException
ResourceException - if the method failspublic 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 | ||||||||||