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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn edge in the topology representing a connection between two routes via a shared endpoint.static final recordAn external endpoint representing a remote system that a route communicates with.static final recordA node in the topology representing a route.static final recordThe result of computing route topology. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondumpTopology(CamelContext context) Computes the inter-route topology by analyzing route definitions and matching endpoints across routes.
-
Field Details
-
FACTORY
-
-
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
-