org.apache.camel.view
Class GraphGeneratorSupport

java.lang.Object
  extended by org.apache.camel.view.GraphGeneratorSupport
Direct Known Subclasses:
RouteDotGenerator, XmlGraphGenerator

public abstract class GraphGeneratorSupport
extends Object

Version:
$Revision: 36321 $

Field Summary
protected  int clusterCounter
           
protected  String dir
           
protected  String extension
           
 
Constructor Summary
protected GraphGeneratorSupport(String dir, String extension)
           
 
Method Summary
protected  Map<String,List<RouteType>> createRouteGroupMap(List<RouteType> routes)
           
 void drawRoutes(CamelContext context)
           
protected abstract  void generateFile(PrintWriter writer, Map<String,List<RouteType>> map)
           
 String getDir()
           
protected  String getLabel(ExpressionType expression)
           
protected  String getLabel(List<ExpressionType> expressions)
           
protected  NodeData getNodeData(Object node)
           
protected  boolean isMulticastNode(ProcessorType node)
           
 void setDir(String dir)
          Sets the destination directory in which to create the diagrams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

protected String dir

clusterCounter

protected int clusterCounter

extension

protected String extension
Constructor Detail

GraphGeneratorSupport

protected GraphGeneratorSupport(String dir,
                                String extension)
Method Detail

getDir

public String getDir()

setDir

public void setDir(String dir)
Sets the destination directory in which to create the diagrams


drawRoutes

public void drawRoutes(CamelContext context)
                throws IOException
Throws:
IOException

generateFile

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

isMulticastNode

protected boolean isMulticastNode(ProcessorType node)

getLabel

protected String getLabel(List<ExpressionType> expressions)

getLabel

protected String getLabel(ExpressionType expression)

getNodeData

protected NodeData getNodeData(Object node)

createRouteGroupMap

protected Map<String,List<RouteType>> createRouteGroupMap(List<RouteType> routes)


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