This project has retired. For details please refer to its Attic page.
Protos.MachineInfo.Mode
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Enum Protos.MachineInfo.Mode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Protos.MachineInfo.Mode>
    Enclosing class:
    Protos.MachineInfo


    public static enum Protos.MachineInfo.Mode
    extends java.lang.Enum<Protos.MachineInfo.Mode>
     Describes the several states that a machine can be in. A `Mode`
     applies to a machine and to all associated slaves on the machine.
     
    Protobuf enum mesos.MachineInfo.Mode
    • Enum Constant Summary

      Enum Constants
      Enum Constant and Description
      DOWN
      In this mode, a machine is not running any tasks and will not offer any of its resources.
      DRAINING
      In this mode, all slaves on the machine are expected to cooperate with frameworks to drain resources.
      UP
      In this mode, a machine is behaving normally; offering resources, executing tasks, etc.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static int DOWN_VALUE
      In this mode, a machine is not running any tasks and will not offer any of its resources.
      static int DRAINING_VALUE
      In this mode, all slaves on the machine are expected to cooperate with frameworks to drain resources.
      static int UP_VALUE
      In this mode, a machine is behaving normally; offering resources, executing tasks, etc.
    • Enum Constant Detail

      • UP

        public static final Protos.MachineInfo.Mode UP
         In this mode, a machine is behaving normally;
         offering resources, executing tasks, etc.
         
        UP = 1;
      • DRAINING

        public static final Protos.MachineInfo.Mode DRAINING
         In this mode, all slaves on the machine are expected to cooperate with
         frameworks to drain resources. In general, draining is done ahead of
         a pending `unavailability`. The resources should be drained so as to
         maximize utilization prior to the maintenance but without knowingly
         violating the frameworks' requirements.
         
        DRAINING = 2;
      • DOWN

        public static final Protos.MachineInfo.Mode DOWN
         In this mode, a machine is not running any tasks and will not offer
         any of its resources. Slaves on the machine will not be allowed to
         register with the master.
         
        DOWN = 3;
    • Field Detail

      • UP_VALUE

        public static final int UP_VALUE
         In this mode, a machine is behaving normally;
         offering resources, executing tasks, etc.
         
        UP = 1;
        See Also:
        Constant Field Values
      • DRAINING_VALUE

        public static final int DRAINING_VALUE
         In this mode, all slaves on the machine are expected to cooperate with
         frameworks to drain resources. In general, draining is done ahead of
         a pending `unavailability`. The resources should be drained so as to
         maximize utilization prior to the maintenance but without knowingly
         violating the frameworks' requirements.
         
        DRAINING = 2;
        See Also:
        Constant Field Values
      • DOWN_VALUE

        public static final int DOWN_VALUE
         In this mode, a machine is not running any tasks and will not offer
         any of its resources. Slaves on the machine will not be allowed to
         register with the master.
         
        DOWN = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static Protos.MachineInfo.Mode valueOf(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
      • internalGetValueMap

        public static <any> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /