|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.parlay.jca.ManagedConnectionImpl
public class ManagedConnectionImpl
Stateful representation of a Parlay Connection. May be pooled for optimisation. Must allow multiplexing of multiple instances to the same gateway service session. This managed connection is associated with a single ParlayConnection which may change during the lifespan of this connection.
| Constructor Summary | |
|---|---|
ManagedConnectionImpl(ParlaySession session)
|
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener l)
|
void |
associateConnection(java.lang.Object arg0)
|
void |
associationClosed(ParlayConnectionProxyAssociation association)
Called by an association if it is closed due to an external operation e.g. client calls close(). |
void |
cleanup()
|
void |
destroy()
|
boolean |
equals(java.lang.Object obj)
|
protected void |
fireConnectionClosed(javax.resource.spi.ConnectionEvent e)
Fires connection closed event to all registered listeners |
protected void |
fireConnectionErrorOccurred(javax.resource.spi.ConnectionEvent e)
Fired connection error event to all registered listeners |
java.lang.Object |
getConnection(javax.security.auth.Subject arg0,
javax.resource.spi.ConnectionRequestInfo arg1)
|
org.mobicents.csapi.jr.slee.IpServiceConnection |
getIpServiceConnection(org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
Get a IpServiceConnection. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
java.io.PrintWriter |
getLogWriter()
|
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
org.mobicents.csapi.jr.slee.TpServiceIdentifier |
getService(java.lang.String serviceTypeName,
java.util.Properties serviceProperties)
Gets an ID representing an instance of a Parlay service |
javax.transaction.xa.XAResource |
getXAResource()
|
int |
hashCode()
|
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener l)
|
void |
setLogWriter(java.io.PrintWriter arg0)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedConnectionImpl(ParlaySession session)
| Method Detail |
|---|
public org.mobicents.csapi.jr.slee.TpServiceIdentifier getService(java.lang.String serviceTypeName,
java.util.Properties serviceProperties)
throws javax.slee.resource.ResourceException
ParlayConnectionProxy
getService in interface ParlayConnectionProxyserviceTypeName - the parlay defined service type nameserviceProperties - the set of service properties relating to this service
javax.slee.resource.ResourceException - if the Connection cannot be created
public org.mobicents.csapi.jr.slee.IpServiceConnection getIpServiceConnection(org.mobicents.csapi.jr.slee.TpServiceIdentifier serviceIdentifier)
throws javax.slee.resource.ResourceException
ParlayConnectionProxy
getIpServiceConnection in interface ParlayConnectionProxyserviceIdentifier - an identifier for the service
javax.slee.resource.ResourceException - if the Connection cannot be created
public java.lang.Object getConnection(javax.security.auth.Subject arg0,
javax.resource.spi.ConnectionRequestInfo arg1)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void destroy()
throws javax.resource.ResourceException
destroy in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void associateConnection(java.lang.Object arg0)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void addConnectionEventListener(javax.resource.spi.ConnectionEventListener l)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionpublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener l)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnection
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter arg0)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceException
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void associationClosed(ParlayConnectionProxyAssociation association)
ParlayConnectionProxy
associationClosed in interface ParlayConnectionProxyprotected void fireConnectionClosed(javax.resource.spi.ConnectionEvent e)
e - the eventprotected void fireConnectionErrorOccurred(javax.resource.spi.ConnectionEvent e)
e - the eventpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||