Interface RouteDiagramDumper
public interface RouteDiagramDumper
To dump routes as visual diagrams as PNG images.
- Since:
- 4.21
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringdumpRoutesAsAsciiArt(String filter) Dumps the routes as ASCII art textdefault StringdumpRoutesAsAsciiArt(String filter, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth) Dumps the routes as ASCII art textdefault StringdumpRoutesAsAsciiArt(String filter, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth, boolean unicode) Dumps the routes as ASCII art or Unicode box-drawing textdefault BufferedImagedumpRoutesAsImage(String filter, RouteDiagramDumper.Theme theme) Dumps the routes as a PNG imagedumpRoutesAsImage(String filter, RouteDiagramDumper.Theme theme, boolean metrics, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth, int fontSize) Dumps the routes as a PNG imagevoiddumpRoutesToFile(String filter, RouteDiagramDumper.Theme theme, File file) Dumps the routes as PNG files in the given filevoiddumpRoutesToFolder(String filter, RouteDiagramDumper.Theme theme, File folder) Dumps the routes as PNG files in the given folderdefault StringdumpTopologyAsAsciiArt(int nodeWidth, boolean unicode) Dumps the route topology as ASCII art or Unicode box-drawing textdefault StringdumpTopologyAsAsciiArt(int nodeWidth, boolean unicode, boolean external) Dumps the route topology as ASCII art or Unicode box-drawing textdefault BufferedImagedumpTopologyAsImage(RouteDiagramDumper.Theme theme, boolean metrics, int nodeWidth, int fontSize) Dumps the route topology as a PNG imagedefault BufferedImagedumpTopologyAsImage(RouteDiagramDumper.Theme theme, boolean metrics, int nodeWidth, int fontSize, boolean external) Dumps the route topology as a PNG imagedefault voiddumpTopologyToFolder(RouteDiagramDumper.Theme theme, boolean external, File folder) Dumps the route topology as a PNG file in the given folderimageToBase64(BufferedImage image) Converts the image to base64
-
Field Details
-
FACTORY
-
-
Method Details
-
dumpRoutesToFile
Dumps the routes as PNG files in the given file- Parameters:
filter- to filter routestheme- the coloring themefile- the name of the file to store- Throws:
IOException
-
dumpRoutesToFolder
void dumpRoutesToFolder(String filter, RouteDiagramDumper.Theme theme, File folder) throws IOException Dumps the routes as PNG files in the given folder- Parameters:
filter- to filter routestheme- the coloring themefolder- the folder to store the files- Throws:
IOException
-
dumpRoutesAsImage
Dumps the routes as a PNG image- Parameters:
filter- to filter routestheme- the coloring theme
-
dumpRoutesAsImage
BufferedImage dumpRoutesAsImage(String filter, RouteDiagramDumper.Theme theme, boolean metrics, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth, int fontSize) Dumps the routes as a PNG image- Parameters:
filter- to filter routestheme- the coloring thememetrics- whether to include live metric countersnodeLabel- what information to display in the nodesnodeWidth- the width in pixels of the node boxesfontSize- the font size
-
imageToBase64
Converts the image to base64- Throws:
IOException
-
dumpRoutesAsAsciiArt
-
dumpRoutesAsAsciiArt
default String dumpRoutesAsAsciiArt(String filter, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth) Dumps the routes as ASCII art text- Parameters:
filter- to filter routesnodeLabel- what information to display in the nodesnodeWidth- the width in pixels of the node boxes
-
dumpRoutesAsAsciiArt
default String dumpRoutesAsAsciiArt(String filter, RouteDiagramDumper.NodeLabelMode nodeLabel, int nodeWidth, boolean unicode) Dumps the routes as ASCII art or Unicode box-drawing text- Parameters:
filter- to filter routesnodeLabel- what information to display in the nodesnodeWidth- the width in pixels of the node boxesunicode- whether to use Unicode box-drawing characters
-
dumpTopologyToFolder
default void dumpTopologyToFolder(RouteDiagramDumper.Theme theme, boolean external, File folder) throws IOException Dumps the route topology as a PNG file in the given folder- Parameters:
theme- the coloring themeexternal- whether to include external systems (kafka, http, etc.)folder- the folder to store the file- Throws:
IOException- Since:
- 4.21
-
dumpTopologyAsAsciiArt
Dumps the route topology as ASCII art or Unicode box-drawing text- Parameters:
nodeWidth- the width in pixels of the node boxesunicode- whether to use Unicode box-drawing characters- Since:
- 4.21
-
dumpTopologyAsAsciiArt
Dumps the route topology as ASCII art or Unicode box-drawing text- Parameters:
nodeWidth- the width in pixels of the node boxesunicode- whether to use Unicode box-drawing charactersexternal- whether to include external systems (kafka, http, etc.)- Since:
- 4.21
-
dumpTopologyAsImage
default BufferedImage dumpTopologyAsImage(RouteDiagramDumper.Theme theme, boolean metrics, int nodeWidth, int fontSize) Dumps the route topology as a PNG image- Parameters:
theme- the coloring thememetrics- whether to include live metric countersnodeWidth- the width in pixels of the node boxesfontSize- the font size- Since:
- 4.21
-
dumpTopologyAsImage
default BufferedImage dumpTopologyAsImage(RouteDiagramDumper.Theme theme, boolean metrics, int nodeWidth, int fontSize, boolean external) Dumps the route topology as a PNG image- Parameters:
theme- the coloring thememetrics- whether to include live metric countersnodeWidth- the width in pixels of the node boxesfontSize- the font sizeexternal- whether to include external systems (kafka, http, etc.)- Since:
- 4.21
-