1 package compbio.data.msa;
\r
3 import java.util.Date;
\r
4 import java.util.Set;
\r
6 import javax.jws.WebService;
\r
8 import compbio.ws.client.Services;
\r
11 * JABAWS services registry
\r
14 * @version 1.0 June 2011
\r
16 @WebService(targetNamespace = JABAService.V2_SERVICE_NAMESPACE)
\r
17 public interface RegistryWS extends JABAService {
\r
20 * List of services that are functioning on the server. This function
\r
21 * returns the results of testing performed some time ago by
\r
22 * {@link #testAllServices} or {@link #testService(Services)} methods. The
\r
23 * time of last check can be obtained from
\r
24 * {@link #getLastTestedOn(Services)} method
\r
26 * @return the Set of Services which are functioning on the server
\r
27 * @see #testAllServices()
\r
29 Set<Services> getSupportedServices();
\r
31 * Number of seconds since the last test. Returns 0 if the service was not
\r
32 * tested or tested less then a one second ago.
\r
37 int getLastTested(Services service);
\r
39 * The date and time the service has been verified to work last time
\r
42 * @return the Date and time on which the service was last tested
\r
44 Date getLastTestedOn(Services service);
\r
46 * Test all JABAWS services on the server
\r
48 * @return the test log
\r
50 String testAllServices();
\r
52 * Test a particular service
\r
55 * @return the testing log
\r
57 String testService(Services service);
\r
59 * Check whether a particular web service is working on this server
\r
62 * @return true if the service was functioning in time of last testing.
\r
64 boolean isOperating(Services service);
\r