Class ServiceChecker


  • public class ServiceChecker
    extends java.lang.Object
    Methods for checking on KBase SDK services.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int JV_PL_CODE  
      static java.lang.String JV_PL_MSG  
      static int PY_CODE  
      static java.lang.String PY_MSG  
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceChecker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkService​(java.net.URL serviceURL)
      Checks whether the KBase SDK service at the given url is contactable.
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceChecker

        public ServiceChecker()
    • Method Detail

      • checkService

        public static void checkService​(java.net.URL serviceURL)
                                 throws ServiceChecker.ServiceException
        Checks 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