org.apache.camel.view
Class RouteDotGenerator

java.lang.Object
  extended by org.apache.camel.view.GraphGeneratorSupport
      extended by org.apache.camel.view.RouteDotGenerator

public class RouteDotGenerator
extends GraphGeneratorSupport

A DOT file creator plugin which creates a DOT file showing the current routes

Version:
$Revision: 1513 $

Field Summary
 
Fields inherited from class org.apache.camel.view.GraphGeneratorSupport
clusterCounter, dir, extension
 
Constructor Summary
RouteDotGenerator(String dir)
           
 
Method Summary
protected  String escapeNodeId(String text)
           
protected  void generateFile(PrintWriter writer, Map<String,List<RouteType>> map)
           
protected  void printNode(PrintWriter writer, NodeData data)
           
protected  NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorType node)
           
protected  void printRoute(PrintWriter writer, RouteType route, FromType input)
           
protected  void printRoutes(PrintWriter writer, Map<String,List<RouteType>> map)
           
protected  void printRoutes(PrintWriter writer, String group, List<RouteType> routes)
           
 
Methods inherited from class org.apache.camel.view.GraphGeneratorSupport
createRouteGroupMap, drawRoutes, getDir, getLabel, getLabel, getNodeData, isMulticastNode, setDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteDotGenerator

public RouteDotGenerator(String dir)
Method Detail

printRoutes

protected void printRoutes(PrintWriter writer,
                           Map<String,List<RouteType>> map)

printRoutes

protected void printRoutes(PrintWriter writer,
                           String group,
                           List<RouteType> routes)

escapeNodeId

protected String escapeNodeId(String text)

printRoute

protected void printRoute(PrintWriter writer,
                          RouteType route,
                          FromType input)

printNode

protected NodeData printNode(PrintWriter writer,
                             NodeData fromData,
                             ProcessorType node)

printNode

protected void printNode(PrintWriter writer,
                         NodeData data)

generateFile

protected void generateFile(PrintWriter writer,
                            Map<String,List<RouteType>> map)
Specified by:
generateFile in class GraphGeneratorSupport


Copyright © 2010 IONA Open Source Community. All Rights Reserved.