Enum ServiceState

    • Enum Constant Detail

      • UNREGISTERED

        public static final ServiceState UNREGISTERED
        This state is used only by the monitor implementation and not by monitored services.
      • STARTING

        public static final ServiceState STARTING
        Move to this state when registration call is received from monitored service.
      • OPERATIONAL

        public static final ServiceState OPERATIONAL
        This state is used only by the monitored services for reactive and proactive reporting.
      • SUSPECTED

        public static final ServiceState SUSPECTED
        This state is used only by the monitor implementation and not by monitored services.
      • RECOVERED

        public static final ServiceState RECOVERED
        This state is used only by the monitor implementation and not by monitored services.
      • ERROR

        public static final ServiceState ERROR
        This state is used only by the monitored services for reactive and proactive reporting.
    • Method Detail

      • values

        public static ServiceState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServiceState c : ServiceState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServiceState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null