Enum InstanceStatus

    • Method Detail

      • values

        public static InstanceStatus[] 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 (InstanceStatus c : InstanceStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InstanceStatus 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
      • getText

        @NotNull
        public String getText()
        Text to be shown on the web pages
        Returns:
        see above
      • getName

        @NotNull
        public String getName()
      • isCanTerminate

        public boolean isCanTerminate()
        See below
        Returns:
        true if instance can be terminated
      • isCanManuallyTerminate

        public boolean isCanManuallyTerminate()
        Indicates whether this instance can be stopped manually via web interface
        Returns:
        true if we need to show stop link for this instance on cloud details page.
      • isStartingOrStarted

        public boolean isStartingOrStarted()
      • isError

        public boolean isError()
        Returns:
        true if status is error, i.e. ERROR or ERROR_CANNOT_STOP
        Since:
        7.1