Class Client

    • Field Detail

      • masterUrl

        protected final String masterUrl
      • connectTimeout

        protected final int connectTimeout
      • readTimeout

        protected final int readTimeout
      • operationAttempts

        protected final int operationAttempts
      • operationSleep

        protected final long operationSleep
      • info

        protected final String info
      • log

        protected final org.jgroups.logging.Log log
    • Constructor Detail

      • Client

        public Client​(String masterUrl,
                      Map<String,​String> headers,
                      int connectTimeout,
                      int readTimeout,
                      int operationAttempts,
                      long operationSleep,
                      StreamProvider streamProvider,
                      org.jgroups.logging.Log log)
    • Method Detail

      • podRunning

        protected boolean podRunning​(Json podStatus)
        Helper method to determine if a pod is considered running or not.
        Parameters:
        podStatus - a Json object expected to contain the "status" object of a pod
        Returns:
        true if the pod is considered available, false otherwise