public class RegistryWS extends java.lang.Object implements RegistryWS, JABAService
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
allTested
Indicate whether the services were tested at all
|
private static org.apache.log4j.Logger |
log |
private static java.util.Map<Services,java.util.Date> |
nonoperating |
private static java.util.Map<Services,java.util.Date> |
operating
Stores tested and passed (the test) services and their testing time
|
(package private) javax.xml.ws.WebServiceContext |
wsContext |
JABAWS_VERSION, SERVICE_NAMESPACE, V2_SERVICE_NAMESPACE, V3_SERVICE_NAMESPACE| Constructor and Description |
|---|
RegistryWS() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastTested(Services service)
Number of seconds since the last test.
|
java.util.Date |
getLastTestedOn(Services service)
Can potentially return null if the service has not been tested yet.
|
private int |
getLongestUntestedServiceTime()
Return time in seconds for the test for the oldest unchecked service
|
java.util.Set<Category> |
getServiceCategories()
Gets the list of services per category.
|
java.lang.String |
getServiceDescription(Services service)
Gives the description of the service.
|
private java.lang.String |
getServicePath() |
java.util.Set<Services> |
getSupportedServices()
List of services that are functioning on the server.
|
private void |
init() |
boolean |
isOperating(Services service)
Check whether a particular web service is working on this server
|
java.lang.String |
testAllServices()
TODO improve reporting.
|
java.lang.String |
testService(Services service)
Test a particular service
|
private boolean |
timeToTest() |
javax.xml.ws.WebServiceContext wsContext
private static org.apache.log4j.Logger log
private static final java.util.Map<Services,java.util.Date> operating
private static final java.util.Map<Services,java.util.Date> nonoperating
private static boolean allTested
public java.util.Set<Services> getSupportedServices()
RegistryWSRegistryWS.testAllServices() or RegistryWS.testService(Services) methods. The
time of last check can be obtained from
RegistryWS.getLastTestedOn(Services) methodgetSupportedServices in interface RegistryWSRegistryWS.testAllServices()private void init()
private boolean timeToTest()
private int getLongestUntestedServiceTime()
public int getLastTested(Services service)
RegistryWSgetLastTested in interface RegistryWSpublic java.util.Date getLastTestedOn(Services service)
getLastTestedOn in interface RegistryWSpublic java.lang.String testAllServices()
testAllServices in interface RegistryWSprivate java.lang.String getServicePath()
public java.lang.String testService(Services service)
RegistryWStestService in interface RegistryWSpublic boolean isOperating(Services service)
RegistryWSisOperating in interface RegistryWSpublic java.lang.String getServiceDescription(Services service)
RegistryWSgetServiceDescription in interface RegistryWSpublic java.util.Set<Category> getServiceCategories()
RegistryWSgetServiceCategories in interface RegistryWS