Interface RouteTopologyDumper


public interface RouteTopologyDumper
SPI that analyses the active Camel routes and computes a graph describing how they interconnect through shared endpoints.

The implementation is discovered via the service key FACTORY. The single dumpTopology(org.apache.camel.CamelContext) method returns a RouteTopologyDumper.TopologyResult record containing: RouteTopologyDumper.TopologyNode entries (one per route, classified as route or trigger), RouteTopologyDumper.TopologyEdge entries (connections between two routes via a shared endpoint URI, classified as internal for direct/seda or external for remote transports), and RouteTopologyDumper.TopologyExternalEndpoint entries (remote systems a route talks to). The developer console uses this output to render an interactive route graph.

See Camel CLI (camel-jbang) for the developer console that renders this graph.

Since:
4.21
See Also:
  • Field Details

  • Method Details

    • dumpTopology

      Computes the inter-route topology by analyzing route definitions and matching endpoints across routes.
      Parameters:
      context - the CamelContext
      Returns:
      the topology result with nodes and edges