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()
RegistryWS
RegistryWS.testAllServices()
or RegistryWS.testService(Services)
methods. The
time of last check can be obtained from
RegistryWS.getLastTestedOn(Services)
methodgetSupportedServices
in interface RegistryWS
RegistryWS.testAllServices()
private void init()
private boolean timeToTest()
private int getLongestUntestedServiceTime()
public int getLastTested(Services service)
RegistryWS
getLastTested
in interface RegistryWS
public java.util.Date getLastTestedOn(Services service)
getLastTestedOn
in interface RegistryWS
public java.lang.String testAllServices()
testAllServices
in interface RegistryWS
private java.lang.String getServicePath()
public java.lang.String testService(Services service)
RegistryWS
testService
in interface RegistryWS
public boolean isOperating(Services service)
RegistryWS
isOperating
in interface RegistryWS
public java.lang.String getServiceDescription(Services service)
RegistryWS
getServiceDescription
in interface RegistryWS
public java.util.Set<Category> getServiceCategories()
RegistryWS
getServiceCategories
in interface RegistryWS