public class TwoPortService extends HL7Service
Constructor and Description |
---|
TwoPortService(HapiContext hapiContext,
int inboundPort,
int outboundPort,
boolean tls)
Creates a new instance of TwoPortService
|
TwoPortService(int inboundPort,
int outboundPort) |
TwoPortService(int inboundPort,
int outboundPort,
boolean tls) |
TwoPortService(Parser parser,
LowerLayerProtocol llp,
int inboundPort,
int outboundPort,
boolean tls)
Creates a new instance of TwoPortService
|
TwoPortService(Parser parser,
LowerLayerProtocol llp,
int inboundPort,
int outboundPort,
boolean tls,
ExecutorService executorService)
Creates a new instance of TwoPortService
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterStartup()
Launches two threads that concurrently listen on the inboundPort and
outboundPort.
|
protected void |
afterTermination()
Terminate the two acceptor threads
|
protected ca.uhn.hl7v2.app.AcceptorThread |
createAcceptThread(int port) |
protected void |
handle()
Polls for accepted sockets
|
static void |
main(String[] args)
Run server from command line.
|
getRemoteConnection, getRemoteConnections, keepRunning, loadApplicationsFromFile, newConnection, registerApplication, registerApplication, registerApplication, registerApplication, registerConnectionListener, setExceptionHandler, unregisterApplication, unregisterApplication
getExecutorService, getServiceExitedWithException, isRunning, prepareTermination, run, setServiceExitedWithException, setShutdownTimeout, start, startAndWait, stop, stopAndWait, waitForTermination
public TwoPortService(int inboundPort, int outboundPort)
public TwoPortService(int inboundPort, int outboundPort, boolean tls)
public TwoPortService(Parser parser, LowerLayerProtocol llp, int inboundPort, int outboundPort, boolean tls)
public TwoPortService(HapiContext hapiContext, int inboundPort, int outboundPort, boolean tls)
public TwoPortService(Parser parser, LowerLayerProtocol llp, int inboundPort, int outboundPort, boolean tls, ExecutorService executorService)
protected void afterStartup()
afterStartup
in class HL7Service
HL7Service.afterStartup()
protected void afterTermination()
afterTermination
in class HL7Service
HL7Service.afterTermination()
protected ca.uhn.hl7v2.app.AcceptorThread createAcceptThread(int port) throws SocketException, IOException
SocketException
IOException
public static void main(String[] args)
super.loadApplicationsFromFile(...)
). Uses the default
LowerLayerProtocol.Copyright © 2001–2017 University Health Network. All rights reserved.