org.apache.camel.view
Class GraphGeneratorSupport
java.lang.Object
org.apache.camel.view.GraphGeneratorSupport
- Direct Known Subclasses:
- RouteDotGenerator, XmlGraphGenerator
public abstract class GraphGeneratorSupport
- extends Object
- Version:
- $Revision: 752939 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final transient org.apache.commons.logging.Log log
dir
protected String dir
clusterCounter
protected int clusterCounter
extension
protected String extension
GraphGeneratorSupport
protected GraphGeneratorSupport(String dir,
String extension)
getDir
public String getDir()
setDir
public void setDir(String dir)
- Sets the destination directory in which to create the diagrams
getImagePrefix
public String getImagePrefix()
setImagePrefix
public void setImagePrefix(String imagePrefix)
getRoutesText
public String getRoutesText(CamelContext context)
throws IOException
- Throws:
IOException
getRouteText
public String getRouteText(RouteDefinition route)
throws IOException
- Throws:
IOException
drawRoutes
public void drawRoutes(CamelContext context)
throws IOException
- Throws:
IOException
generateFile
protected abstract void generateFile(PrintWriter writer,
Map<String,List<RouteDefinition>> map)
isMulticastNode
protected boolean isMulticastNode(ProcessorDefinition node)
getLabel
protected String getLabel(List<ExpressionDefinition> expressions)
getLabel
protected String getLabel(ExpressionDefinition expression)
getNodeData
protected NodeData getNodeData(Object node)
createRouteGroupMap
protected Map<String,List<RouteDefinition>> createRouteGroupMap(List<RouteDefinition> routes)
createRouteGroupMap
protected Map<String,List<RouteDefinition>> createRouteGroupMap(RouteDefinition route)
addRouteToMap
protected void addRouteToMap(Map<String,List<RouteDefinition>> map,
RouteDefinition route)
Apache CAMEL