Sun Adapter for TCP/IP HL7

com.stc.connector.tcpip.hl7.server
Class HL7v3ServerEndpoint

java.lang.Object
  extended by com.stc.connector.tcpip.model.server.TCPIPServerEndpoint
      extended by com.stc.connector.tcpip.ext.server.TCPIPEXTServerEndpoint
          extended by com.stc.connector.tcpip.hl7.server.HL7v3ServerEndpoint
All Implemented Interfaces:
com.stc.connector.framework.eway.EwayEndpoint, com.stc.connector.management.STCManagedSlave, java.io.Serializable

public class HL7v3ServerEndpoint
extends TCPIPEXTServerEndpoint
implements com.stc.connector.framework.eway.EwayEndpoint, java.io.Serializable

Implementatin of EwayEndpoint for HL7v3 Server Activations.

Version:
cvs revision: $Revision: 1.2 $ Last Modified: $Date: 2008/04/24 12:54:14 $
Author:
Nageswara Samudrala
See Also:
Serialized Form

Field Summary
static java.lang.String NOT_AVAILABLE
           
static java.lang.String version
           
 
Fields inherited from class com.stc.connector.tcpip.model.server.TCPIPServerEndpoint
mMonitorData
 
Constructor Summary
HL7v3ServerEndpoint()
          Constructor of HL7v3ServerEndpoint
 
Method Summary
 void activation(javax.resource.spi.endpoint.MessageEndpointFactory mef, javax.resource.spi.BootstrapContext aContext, com.stc.configuration.IConfiguration aConfiguration, com.stc.connector.management.util.ObjectReference aMonitor)
          Activate eWay endpoint.
 TCPIPServerApplication createTCPIPServerApplication(TCPIPServerApplicationConnection serverAppConn, java.lang.String appName)
          Creates TCPIPServerApplication object.
 void deactivation(javax.resource.spi.endpoint.MessageEndpointFactory mef)
          Deactivate (terminate) eWay endpoint.
 HL7v3MessageInfo getHL7v3MessageInfo()
          Returns the hl7MessageInfo.
protected  void initializeMsg()
          Method initializeMsg.
 void setHL7v3MessageInfo(HL7v3MessageInfo hl7MessageInfo)
          Sets the hl7MessageInfo.
 
Methods inherited from class com.stc.connector.tcpip.ext.server.TCPIPEXTServerEndpoint
getMessageInfo, setMessageInfo
 
Methods inherited from class com.stc.connector.tcpip.model.server.TCPIPServerEndpoint
getActivationSpec, getBootstrapContext, getConfiguration, getMessageEndpointFactory, getMonitor, getMonitorSchedulerList, getMonitorTaskList, getMonitorWorkList, getTCPIPServer, getTCPIPServerGeneralInfo, getTCPIPServerScheduleInfo, getTCPIPServerSocketInfo, getXAResource, setActivationSpec, setMonitor, setTCPIPServerGeneralInfo, setTCPIPServerScheduleInfo, setTCPIPServerSocketInfo, updateMBeanConnectionStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.stc.connector.framework.eway.EwayEndpoint
getXAResource
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values

NOT_AVAILABLE

public static final java.lang.String NOT_AVAILABLE
See Also:
Constant Field Values
Constructor Detail

HL7v3ServerEndpoint

public HL7v3ServerEndpoint()
Constructor of HL7v3ServerEndpoint

Method Detail

activation

public void activation(javax.resource.spi.endpoint.MessageEndpointFactory mef,
                       javax.resource.spi.BootstrapContext aContext,
                       com.stc.configuration.IConfiguration aConfiguration,
                       com.stc.connector.management.util.ObjectReference aMonitor)
                throws javax.resource.ResourceException
Activate eWay endpoint.

Specified by:
activation in interface com.stc.connector.framework.eway.EwayEndpoint
Overrides:
activation in class TCPIPEXTServerEndpoint
Parameters:
mef - The MessageEndpointFactory assoicated with the activation.
aContext - The BootstrapContext provided by the container.
aConfiguration - The instance of IConfiguration which contains the information for creating an endpoint activation.
aMonitor - The monitor ObjectReference.
Throws:
javax.resource.NotSupportedException - upon error.
javax.resource.ResourceException
See Also:
(MessageEndpointFactory, BootstrapContext, IConfiguration, ObjectReference)

initializeMsg

protected void initializeMsg()
                      throws javax.resource.NotSupportedException
Description copied from class: TCPIPServerEndpoint
Method initializeMsg.

Overrides:
initializeMsg in class TCPIPEXTServerEndpoint
Throws:
javax.resource.NotSupportedException
See Also:
TCPIPServerEndpoint.initializeMsg()

deactivation

public void deactivation(javax.resource.spi.endpoint.MessageEndpointFactory mef)
Deactivate (terminate) eWay endpoint.

Specified by:
deactivation in interface com.stc.connector.framework.eway.EwayEndpoint
Overrides:
deactivation in class TCPIPEXTServerEndpoint
Parameters:
mef - The MessageEndpointFactory assoicated with the activation.
See Also:
EwayEndpoint.deactivation(MessageEndpointFactory)

createTCPIPServerApplication

public TCPIPServerApplication createTCPIPServerApplication(TCPIPServerApplicationConnection serverAppConn,
                                                           java.lang.String appName)
                                                    throws TCPIPApplicationException
Description copied from class: TCPIPServerEndpoint
Creates TCPIPServerApplication object.

Overrides:
createTCPIPServerApplication in class TCPIPEXTServerEndpoint
Parameters:
serverAppConn - TCPIPServerApplicationConnection instance
appName - Application name
Returns:
TCPIPClientApplication object
Throws:
TCPIPApplicationException - up on an error
See Also:
(TCPIPServerApplicationConnection, String)

getHL7v3MessageInfo

public HL7v3MessageInfo getHL7v3MessageInfo()
Returns the hl7MessageInfo.

Returns:
HL7v3MessageInfo

setHL7v3MessageInfo

public void setHL7v3MessageInfo(HL7v3MessageInfo hl7MessageInfo)
Sets the hl7MessageInfo.

Parameters:
hl7MessageInfo - The HL7v3MessageInfo to set

Sun Adapter for TCP/IP HL7