Class DelayedHitsExamples

java.lang.Object
jline.examples.java.basic.DelayedHitsExamples

public class DelayedHitsExamples extends Object
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 Details

    • DelayedHitsExamples

      public DelayedHitsExamples()
  • Method Details

    • simple_retrieval_system_model

      public static Network 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

      public static Network chain_retrieval_system_model()
    • run_solvers

      public static void run_solvers(Network model)
    • main

      public static void main(String[] args)