Enum HeteroSchedPolicy

  • All Implemented Interfaces:

    
    public enum HeteroSchedPolicy
    
                        

    Enumeration of scheduling policies for heterogeneous multiserver queues.

    These policies determine how jobs are assigned to servers when multiple server types are available and a job's class is compatible with more than one server type.

    The policies are based on JMT's heterogeneous server scheduling:

    • ORDER - Assign to first available compatible server type (in definition order)
    • ALIS - Assign Longest Idle Server
    • ALFS - Assign Longest Free Server (with fairness sorting)
    • FAIRNESS - Fair distribution across compatible server types
    • FSF - Fastest Server First (based on expected service time)
    • RAIS - Random Available Idle Server
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ORDER

      Assign to first available compatible server type in definition order. This is the default policy. Servers are checked in the order they were added to the queue, and the first compatible server with availability is used.

      ALIS

      Assign Longest Idle Server. Servers cycle through in order, with fully busy servers moving to the back of the list. Provides round-robin behavior among compatible servers.

      ALFS

      Assign Longest Free Server with fairness sorting. Server types are sorted by compatibility coverage (servers with exclusive classes first), then all servers cycle together to ensure fairness.

      FAIRNESS

      Fair distribution across compatible server types. Simple round-robin among compatible servers, with used servers moving to the back of the list.

      FSF

      Fastest Server First. Always selects the compatible server type with the fastest expected service time for the job's class. Optimizes for lowest latency.

      RAIS

      Random Available Idle Server. Randomly selects among compatible server types that have available capacity.

    • Method Summary

      Modifier and Type Method Description
      static HeteroSchedPolicy fromText(String text) Converts a string representation to a HeteroSchedPolicy enum value.
      String toText() Converts this policy to its text representation.
      static String toText(HeteroSchedPolicy policy) Converts a HeteroSchedPolicy to its text representation.
      static Array<HeteroSchedPolicy> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static HeteroSchedPolicy valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • fromText

         static HeteroSchedPolicy fromText(String text)

        Converts a string representation to a HeteroSchedPolicy enum value.

        Parameters:
        text - the string representation (case-insensitive)
        Returns:

        the corresponding HeteroSchedPolicy enum value

      • toText

         String toText()

        Converts this policy to its text representation.

        Returns:

        the text representation of this policy

      • toText

         static String toText(HeteroSchedPolicy policy)

        Converts a HeteroSchedPolicy to its text representation.

        Parameters:
        policy - the policy to convert
        Returns:

        the text representation

      • values

         static Array<HeteroSchedPolicy> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static HeteroSchedPolicy 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.)

        Returns:

        the enum constant with the specified name