org.apache.camel.view
Class RouteDotGenerator

java.lang.Object
  extended by org.apache.camel.view.GraphSupport
      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: 18258 $

Field Summary
 
Fields inherited from class org.apache.camel.view.GraphGeneratorSupport
clusterCounter, dir, extension
 
Fields inherited from class org.apache.camel.view.GraphSupport
log, nodeMap
 
Constructor Summary
RouteDotGenerator(String dir)
           
 
Method Summary
protected  void generateFile(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected  void printNode(PrintWriter writer, NodeData data)
           
protected  NodeData printNode(PrintWriter writer, NodeData fromData, ProcessorDefinition node)
           
protected  void printRoute(PrintWriter writer, RouteDefinition route, FromDefinition input)
           
protected  void printRoutes(PrintWriter writer, Map<String,List<RouteDefinition>> map)
           
protected  void printRoutes(PrintWriter writer, String group, List<RouteDefinition> routes)
           
 
Methods inherited from class org.apache.camel.view.GraphGeneratorSupport
drawRoutes, getRoutesText
 
Methods inherited from class org.apache.camel.view.GraphSupport
addRouteToMap, createRouteGroupMap, getImagePrefix, getLabel, getLabel, getNodeData, isMulticastNode, isPipeline, setImagePrefix
 
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<RouteDefinition>> map)

printRoutes

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

printRoute

protected void printRoute(PrintWriter writer,
                          RouteDefinition route,
                          FromDefinition input)

printNode

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

printNode

protected void printNode(PrintWriter writer,
                         NodeData data)

generateFile

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


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