Class RouteGraph

java.lang.Object
dev.relism.flash.ext.routeviewer.model.RouteGraph

public class RouteGraph extends Object
Accumulates RouteEvents at boot time and organizes them into an ordered list of RouterNodes for rendering.

Thread-safety: events are emitted sequentially at registration time (single-threaded boot), so no synchronization is needed here.

  • Constructor Details

    • RouteGraph

      public RouteGraph()
  • Method Details

    • add

      public void add(RouteEvent event)
      Called once per route by the RouteListener.
    • nodes

      public List<RouterNode> nodes()
      Returns the route graph as an ordered list of RouterNodes, sorted from shortest namespace to longest (root first, deepest last).
    • totalRoutes

      public int totalRoutes()
      Total number of registered routes across all routers.