Enum HeteroSchedPolicy
-
- All Implemented Interfaces:
public enum HeteroSchedPolicyEnumeration 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ORDERAssign 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.
ALISAssign 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.
ALFSAssign 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.
FAIRNESSFair distribution across compatible server types. Simple round-robin among compatible servers, with used servers moving to the back of the list.
FSFFastest Server First. Always selects the compatible server type with the fastest expected service time for the job's class. Optimizes for lowest latency.
RAISRandom Available Idle Server. Randomly selects among compatible server types that have available capacity.
-
Method Summary
Modifier and Type Method Description static HeteroSchedPolicyfromText(String text)Converts a string representation to a HeteroSchedPolicy enum value. StringtoText()Converts this policy to its text representation. static StringtoText(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 HeteroSchedPolicyvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
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
-
-
-
-