Package jline.examples.java.basic
Class ClusterModel
java.lang.Object
jline.examples.java.basic.ClusterModel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Networkcl_basic()Single-class open cluster with four PS servers and random dispatching.static NetworkClosed cluster with three PS servers, single class, random dispatching.static NetworkHeterogeneous open cluster: each of three FCFS servers has a different service time.static NetworkTwo-class open cluster (e.g., interactive vs batch traffic).
-
Constructor Details
-
ClusterModel
public ClusterModel()
-
-
Method Details
-
cl_basic
Single-class open cluster with four PS servers and random dispatching. -
cl_heterogeneous
Heterogeneous open cluster: each of three FCFS servers has a different service time. -
cl_closed
Closed cluster with three PS servers, single class, random dispatching. -
cl_multiclass
Two-class open cluster (e.g., interactive vs batch traffic).
-