Package jline.examples.java.basic
Class ClusterExamples
java.lang.Object
jline.examples.java.basic.ClusterExamples
Demonstrates cluster modelling APIs:
- The static factories
Network.cluster* - The
Clusterbuilder with comparison and sweep helpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCompares scheduling disciplines on one cluster, the reference'scl_scheduling.static voidSweeps the number of parallel servers, the reference'scl_stations.static voidSolves a four-PS-server open cluster with random dispatching.static voidCompares random vs round-robin vs JSQ dispatching with the builder API.static voidThree FCFS servers with non-uniform service rates dispatched JSQ.static voidClosed-network variant: 8 jobs cycling between Think and 3 PS servers.static voidTwo-class open cluster (interactive + batch) on two PS servers.static voidSweeps the arrival rate to see how response time grows toward saturation.static voidMixed variant: an open class and a closed class share the same two servers.static void
-
Constructor Details
-
ClusterExamples
public ClusterExamples()
-
-
Method Details
-
ex1_basic
public static void ex1_basic()Solves a four-PS-server open cluster with random dispatching. -
ex2_compare_dispatching
public static void ex2_compare_dispatching()Compares random vs round-robin vs JSQ dispatching with the builder API. -
ex3_heterogeneous
public static void ex3_heterogeneous()Three FCFS servers with non-uniform service rates dispatched JSQ. -
ex4_closed
public static void ex4_closed()Closed-network variant: 8 jobs cycling between Think and 3 PS servers. -
ex5_multiclass
public static void ex5_multiclass()Two-class open cluster (interactive + batch) on two PS servers. -
ex7_mixed
public static void ex7_mixed()Mixed variant: an open class and a closed class share the same two servers. -
ex6_sweep
public static void ex6_sweep()Sweeps the arrival rate to see how response time grows toward saturation. -
cl_stations
public static void cl_stations()Sweeps the number of parallel servers, the reference'scl_stations. The cluster is declared at one station and 1.6 arrivals against a service rate of 1.0 -- unstable as declared, which is the point: the sweep is over the server count that makes it stable, and utilization falls as 1/m while the response time collapses once m passes the offered load. -
cl_scheduling
public static void cl_scheduling()Compares scheduling disciplines on one cluster, the reference'scl_scheduling. Service is hyperexponential (SCV 4), which is where the disciplines part company: PS is insensitive to the service distribution beyond its mean, FCFS is not, so the queue lengths differ even though the load does not. The simulator is used rather than MVA because FCFS with non-exponential service is outside the product-form assumptions. -
main
-