Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
+1 for isRunning(), - Asanka James Agnew wrote: I agree 100%. There are now two methods that provide the same functionality (keepRunning() and isRunning()). I've deprecated the former and added some javadoc to explain the change. Certainly prevailing conventions would dictate that the met

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread James Agnew
I agree 100%. There are now two methods that provide the same functionality (keepRunning() and isRunning()). I've deprecated the former and added some javadoc to explain the change. Certainly prevailing conventions would dictate that the method be named isRunning(), but I'm betting that the old me

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Erik Gfesser
Thanks Peter. My time is a bit short at the moment to look at the source code, but solely looking at the names of the methods, it seems that "keepRunning" would indicate whether the server _should_ continue to run rather than "isRunning" which seems to answer the boolean question as to whether t

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread James Agnew
Hi All, This seems sensible enough. The HL7Server class actually already has a method to determine whether the server is running (boolean keepRunning()), but it is protected, and the name isn't particularly obvious. So, I've added the method below to the trunk. Incidentally Erik, if by chance you

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Peter Gershkovich
I added the following method to the HL7Server class. public boolean isRunning() { return keepRunning; } If I am not mistaken it reliably tells me if the servers is running or not. In our case when the application is initiated a SimpleServer object is saved to the application c

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
Hi Erik, I missed your reply, is the application you built in the trunk ? - Asanka Erik Gfesser wrote: Asanka, Please see the attached reply I recently provided to Peter Gershkovich. No, HAPI does not provide JMX support at this point in time. I needed to provide custom development in ord

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Erik Gfesser
Asanka, Please see the attached reply I recently provided to Peter Gershkovich. No, HAPI does not provide JMX support at this point in time. I needed to provide custom development in order to incorporate JMX, but it was worth the effort to incorporate this functionality; the administrators of t

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
Getting JMX support implemented to the server is the ideal solution, do we already have JMX support for HAPI ? (Sorry I'm new to the library). If you want to use a WEB interface why not use Monit, that will do all the operations you required and provide a nice UI. > - Asanka > Peter Gershkovich