Package us.kbase.common.service
Class ServiceChecker
- java.lang.Object
-
- us.kbase.common.service.ServiceChecker
-
public class ServiceChecker extends java.lang.ObjectMethods for checking on KBase SDK services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceChecker.ServiceException
-
Field Summary
Fields Modifier and Type Field Description static intJV_PL_CODEstatic java.lang.StringJV_PL_MSGstatic intPY_CODEstatic java.lang.StringPY_MSG
-
Constructor Summary
Constructors Constructor Description ServiceChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckService(java.net.URL serviceURL)Checks whether the KBase SDK service at the given url is contactable.static voidmain(java.lang.String[] args)
-
-
-
Field Detail
-
PY_MSG
public static final java.lang.String PY_MSG
- See Also:
- Constant Field Values
-
PY_CODE
public static final int PY_CODE
- See Also:
- Constant Field Values
-
JV_PL_MSG
public static final java.lang.String JV_PL_MSG
- See Also:
- Constant Field Values
-
JV_PL_CODE
public static final int JV_PL_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkService
public static void checkService(java.net.URL serviceURL) throws ServiceChecker.ServiceExceptionChecks whether the KBase SDK service at the given url is contactable. If not, throws an exception.- Parameters:
serviceURL- the url of the service.- Throws:
ServiceChecker.ServiceException- if the service cannot be contacted or is not a KBase SDK service.
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-