Class ClusterModel

java.lang.Object
jline.examples.java.basic.ClusterModel

public class ClusterModel extends Object
Server-cluster models built with the Network.cluster(jline.util.matrix.Matrix, jline.util.matrix.Matrix, jline.lang.constant.SchedStrategy[], jline.util.matrix.Matrix, jline.lang.constant.RoutingStrategy) static factories.

The topology is fixed: Source -> Dispatcher (Router) -> Server[1..M] -> Sink for the open variants, and Think (Delay) -> Dispatcher -> Server[1..M] -> Think for the closed variant. The factories collapse ~20 lines of node wiring into one call.

  • Constructor Details

    • ClusterModel

      public ClusterModel()
  • Method Details

    • cl_basic

      public static Network cl_basic()
      Single-class open cluster with four PS servers and random dispatching.
    • cl_heterogeneous

      public static Network cl_heterogeneous()
      Heterogeneous open cluster: each of three FCFS servers has a different service time.
    • cl_closed

      public static Network cl_closed()
      Closed cluster with three PS servers, single class, random dispatching.
    • cl_multiclass

      public static Network cl_multiclass()
      Two-class open cluster (e.g., interactive vs batch traffic).