Package jline.examples.java.advanced
Class LayeredCQExamples
java.lang.Object
jline.examples.java.advanced.LayeredCQExamples
Examples demonstrating layered queueing networks with contention queues (CQ).
This class provides Java implementations corresponding to the Kotlin notebooks
in jline.examples.kotlin.advanced.layeredCQ package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDemonstrates a layered CQ model with a single host (lcq_singlehost.ipynb).static voidDemonstrates a layered CQ model with three hosts (lcq_threehosts.ipynb).static voidMain method to run all layered CQ examples.
-
Constructor Details
-
LayeredCQExamples
public LayeredCQExamples()
-
-
Method Details
-
lcq_singlehost
Demonstrates a layered CQ model with a single host (lcq_singlehost.ipynb). This example shows a basic layered queueing network where software tasks execute on a single host. The model captures both software contention (at the task level) and hardware contention (at the host level), typical in client-server architectures. Features: - Single host with multiple software tasks - Nested queueing structure (software and hardware layers) - Analysis of software bottlenecks vs. hardware bottlenecks - Mean value analysis for layered networks- Throws:
Exception- if the solver encounters an error
-
lcq_threehosts
Demonstrates a layered CQ model with three hosts (lcq_threehosts.ipynb). This example extends the single host case to a distributed system with three hosts. Different software tasks are deployed on different hosts, creating a more complex interaction pattern typical of multi-tier architectures. Features: - Three hosts with distributed software tasks - Inter-host communication patterns - Analysis of distributed system bottlenecks - Load balancing considerations in layered networks- Throws:
Exception- if the solver encounters an error
-
main
Main method to run all layered CQ examples.- Parameters:
args- command line arguments (not used)
-