5859606162636465666768
@Override protected void stopEndpoint(HL7Endpoint endpoint) { SimpleServer server = serverTable.remove(endpoint); if (server != null) { server.stop(); } log.info("Stopped HL7 endpoint on port: " + endpoint.getPort()); } }
130131132133134135136137138139
* MSH|^~\&|||||20070218200627.515-0500||ACK|54|P|2.2 MSA|AA|12345 */ // Close the connection and server connectionHub.discard(connection); server.stop(); } }
170171172173174175176177178179180
public void run() { while (server.isRunning()) { try { Processor p = server.accept(theAddress); if (!myIsRunning) { p.stop(); } else { server.newProcessor(p); Thread.sleep(1); } } catch (TransportException e) {