|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.tcpip.model.client.TCPIPEwayConnection
public class TCPIPEwayConnection
This class implements the ValidatingEwayConnection interface for providing TCPIP connection oriented services for the Eway/JCA framework.
Field Summary | |
---|---|
protected TCPIPMonitorData |
mMonitorData
|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
TCPIPEwayConnection()
Constructor of TCPIPEwayConnection |
Method Summary | |
---|---|
void |
cleanup()
Perform clean up of any resources or reset of any state held by the instance of EwayConnection. |
void |
closeConnection(java.lang.Exception ex)
Closes socket connection if any. |
TCPIPClientApplication |
createTCPIPClientApplication(TCPIPApplicationConnection appConn,
java.lang.String appName)
Creates TCPIPClientApplication object. |
void |
destroy()
Release any resources prior to the destruction of the associated ManagedConnection. |
void |
destroyConnectionHandles()
|
protected void |
generateAlert(java.lang.String msg,
java.lang.String alertMsg,
int state)
|
com.stc.connector.framework.util.ConfigurationHelper |
getConfiguration()
Returns the initial configuration. |
com.stc.connector.framework.client.AssociateableHandle |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a new instance of the connection handle (application connection). |
java.util.Set |
getConnectionHandles()
|
TCPIPApplicationConnection |
getCurrentApplicationConnection()
Returns the current application connection instance. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
Get a LocalTransaction instance for local transaction demaracation. |
com.stc.connector.framework.eway.ManagedConnectionCallback |
getManagedConnectionCallback()
Returns the ManagedConnectionCallback object. |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
Get a new instance of the ManagedConnectionMetaData which contains connection information for the currently established connection. |
com.stc.connector.management.util.ObjectReference |
getMonitor()
|
java.net.Socket |
getSocket()
Returns the Socket object. |
javax.security.auth.Subject |
getSubject()
Returns the Subject object. |
TCPIPClientGeneralInfo |
getTCPIPClientGeneralInfo()
Returns the TCPIPClientGeneralInfo object. |
protected TCPIPResourceAdapter |
getTCPIPResourceAdapter()
Method getTCPIPResourceAdapter. |
TCPIPSocketInfo |
getTCPIPSocketInfo()
Returns the TCPIPSocketInfo object. |
javax.transaction.xa.XAResource |
getXAResource()
Get an XAResource instance for global transaction demaracation. |
void |
initialize(com.stc.connector.framework.eway.ManagedConnectionCallback aCallback,
javax.security.auth.Subject aSubject,
javax.resource.spi.ConnectionRequestInfo aConfiguration,
com.stc.connector.management.jca.system.mbeans.MonitorDataContainer aMonitorDataContainer)
Initialize the EwayConnection. |
protected void |
initializeMsg()
Method initializeMsg. |
boolean |
isValidConnection()
|
boolean |
matchConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Determines whether this instance of the EwayConnection matches the the connection request with the connection information in Subject and/or ConnectionRequestInfo. |
void |
setMonitor(com.stc.connector.management.util.ObjectReference aMonitor)
|
void |
setTCPIPClientGeneralInfo(TCPIPClientGeneralInfo clientGeneralInfo)
Sets the TCPIPClientGeneralInfo object. |
void |
setTCPIPSocketInfo(TCPIPSocketInfo socketInfo)
Sets the TCPIPSocketInfo object. |
void |
updateMBeanConnectionStatus(int status)
Updates RA MBean status to indicate the status of the physical socket connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
protected TCPIPMonitorData mMonitorData
Constructor Detail |
---|
public TCPIPEwayConnection()
Method Detail |
---|
public void initialize(com.stc.connector.framework.eway.ManagedConnectionCallback aCallback, javax.security.auth.Subject aSubject, javax.resource.spi.ConnectionRequestInfo aConfiguration, com.stc.connector.management.jca.system.mbeans.MonitorDataContainer aMonitorDataContainer) throws javax.resource.ResourceException
initialize
in interface com.stc.connector.framework.eway.EwayConnection
mcCallback
- The callback object for getting services from the
associated ManagedConnection.aSubject
- The Subject instance which holds the credentials for EIS
signon.aConfiguration
- The ConnectionRequestInfo instance which can hold both EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.aMonitorDataContainer
- MonitorDataContainer
javax.resource.ResourceException
- upon error.#initialize(ManagedConnectionCallback, Subject, ConnectionRequestInfo, MonitorDataContainer)
protected void initializeMsg() throws javax.resource.ResourceException
javax.resource.ResourceException
public void cleanup() throws javax.resource.ResourceException
cleanup
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.EwayConnection.cleanup()
public void destroy() throws javax.resource.ResourceException
destroy
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.EwayConnection.destroy()
public boolean matchConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
matchConnection
in interface com.stc.connector.framework.eway.EwayConnection
subject
- The Subject instance which holds the credentials for EIS
signon.cri
- The ConnectionRequestInfo instance which holds both EIS EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.
EwayConnection.matchConnection(Subject, ConnectionRequestInfo)
public com.stc.connector.framework.client.AssociateableHandle getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
getConnection
in interface com.stc.connector.framework.eway.EwayConnection
subject
- The Subject instance which holds the credentials for EIS
signon.cri
- The ConnectionRequestInfo instance which holds both EIS EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.
javax.resource.ResourceException
- upon error.EwayConnection.getConnection(Subject, ConnectionRequestInfo)
public TCPIPApplicationConnection getCurrentApplicationConnection()
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.EwayConnection.getLocalTransaction()
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.EwayConnection.getMetaData()
public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.EwayConnection.getXAResource()
public java.net.Socket getSocket()
public com.stc.connector.framework.util.ConfigurationHelper getConfiguration()
public com.stc.connector.framework.eway.ManagedConnectionCallback getManagedConnectionCallback()
public javax.security.auth.Subject getSubject()
public TCPIPClientGeneralInfo getTCPIPClientGeneralInfo()
public void setTCPIPClientGeneralInfo(TCPIPClientGeneralInfo clientGeneralInfo)
clientGeneralInfo
- The TCPIPClientGeneralInfo instance.public TCPIPSocketInfo getTCPIPSocketInfo()
public void setTCPIPSocketInfo(TCPIPSocketInfo socketInfo)
socketInfo
- The TCPIPSocketInfo instance.public TCPIPClientApplication createTCPIPClientApplication(TCPIPApplicationConnection appConn, java.lang.String appName) throws TCPIPApplicationException
appConn
- TCPIPApplicationConnection instanceappName
- Application name
TCPIPApplicationException
- up on an errorprotected TCPIPResourceAdapter getTCPIPResourceAdapter()
public java.util.Set getConnectionHandles()
public void destroyConnectionHandles()
public void closeConnection(java.lang.Exception ex)
ex
- public void updateMBeanConnectionStatus(int status)
status
- Notification Event.public boolean isValidConnection()
isValidConnection
in interface com.stc.connector.framework.eway.ValidatingEwayConnection
ValidatingEwayConnection.isValidConnection()
public void setMonitor(com.stc.connector.management.util.ObjectReference aMonitor)
setMonitor
in interface com.stc.connector.management.STCManagedSlave
STCManagedSlave.setMonitor(com.stc.connector.management.util.ObjectReference)
protected void generateAlert(java.lang.String msg, java.lang.String alertMsg, int state)
public com.stc.connector.management.util.ObjectReference getMonitor()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |