|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.jca.MuleManagedConnection
public class 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. |
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
getConnection in interface ManagedConnectionsubject - security context as JAAS subjectconnectionRequestInfo - ConnectionRequestInfo instance
ResourceException - if the method fails to get a connection
public void destroy()
throws ResourceException
destroy in interface ManagedConnectionResourceException - if the method fails to destroy the connection
public void cleanup()
throws ResourceException
cleanup in interface ManagedConnectionResourceException - if the cleanup fails
public void associateConnection(Object connection)
throws ResourceException
associateConnection in interface ManagedConnectionconnection - application-level connection handle
ResourceException - if the attempt to change the association failspublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface ManagedConnectionlistener - a new ConnectionEventListener to be registeredpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface ManagedConnectionlistener - already registered connection event listener to be removed
public XAResource getXAResource()
throws ResourceException
getXAResource in interface ManagedConnectionResourceException - if transactions are not supported
public LocalTransaction getLocalTransaction()
throws ResourceException
getLocalTransaction in interface ManagedConnectionResourceException - if transactions are not supported
public ManagedConnectionMetaData getMetaData()
throws ResourceException
getMetaData in interface ManagedConnectionResourceException - if the metadata cannot be retrieved
public void setLogWriter(PrintWriter out)
throws ResourceException
setLogWriter in interface ManagedConnectionout - character output stream to be associated
ResourceException - if the method fails
public PrintWriter getLogWriter()
throws ResourceException
getLogWriter in interface ManagedConnectionResourceException - 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 | |||||||||