Package jline.examples.java.basic
Class DelayedHitsExamples
java.lang.Object
jline.examples.java.basic.DelayedHitsExamples
Runnable examples for cache models with a retrieval system that exhibit
delayed hits: while an item is being fetched by the retrieval system
after a miss, subsequent requests for the same item neither hit nor miss
outright but are delayed until the in-flight retrieval completes.
Each example builds a Network with a Cache node whose miss
traffic is routed through a retrieval system, solves it with the CTMC solver,
prints the aggregate node table together with the generated state space and
infinitesimal generator, and reports the hit/miss ratios and expected latency
via Cache.getHitRatio(), Cache.getMissRatio() and
Cache.getExpectedLatency().
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Networkstatic voidstatic voidrun_solvers(Network model) static NetworkCreates a caching model with a simple retrieval system, where there is only one queue in the retrieval system.
-
Constructor Details
-
DelayedHitsExamples
public DelayedHitsExamples()
-
-
Method Details
-
simple_retrieval_system_model
Creates a caching model with a simple retrieval system, where there is only one queue in the retrieval system. -
chain_retrieval_system_model
-
run_solvers
-
main
-