|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.app.HL7Service
ca.uhn.hl7v2.app.TwoPortService
public class TwoPortService
A TCP/IP-based HL7 Service that uses separate ports for inbound and outbound messages. A connection is only activated when the same remote host connects to both the inbound and outbound ports.
Field Summary |
---|
Fields inherited from class ca.uhn.hl7v2.app.HL7Service |
---|
llp, parser |
Constructor Summary | |
---|---|
TwoPortService(Parser parser,
LowerLayerProtocol llp,
int inboundPort,
int outboundPort)
Creates a new instance of TwoPortService |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Run server from command line. |
void |
run()
Initially sets up server sockets and starts separate threads to accept connections on them. |
Methods inherited from class ca.uhn.hl7v2.app.HL7Service |
---|
getRemoteConnection, getRemoteConnections, isRunning, keepRunning, loadApplicationsFromFile, newConnection, registerApplication, registerConnectionListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoPortService(Parser parser, LowerLayerProtocol llp, int inboundPort, int outboundPort)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class HL7Service
public static void main(java.lang.String[] args)
super.loadApplicationsFromFile(...)
).
Uses the default LowerLayerProtocol.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |