net.clackrouter.chart
Class ChartUtils

java.lang.Object
  extended by net.clackrouter.chart.ChartUtils

public class ChartUtils
extends java.lang.Object


Field Summary
static java.lang.String NON_FLOW
           
static java.lang.String TCP_FLOW
           
static java.lang.String UDP_FLOW
           
 
Constructor Summary
ChartUtils()
           
 
Method Summary
static java.lang.String getFlowKeyForFilterEntry(FilterEntry.PacketInfo info)
          If we are graphing with a queue that is also performing filtering, there is no need to inspect the packet twice for the same fields (once to filter, once to get key).
static java.lang.String getFlowKeyForPacket(VNSPacket p)
          Finds the ClackOccData object that corresponds to the flow for this particular packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NON_FLOW

public static java.lang.String NON_FLOW

TCP_FLOW

public static java.lang.String TCP_FLOW

UDP_FLOW

public static java.lang.String UDP_FLOW
Constructor Detail

ChartUtils

public ChartUtils()
Method Detail

getFlowKeyForPacket

public static java.lang.String getFlowKeyForPacket(VNSPacket p)
Finds the ClackOccData object that corresponds to the flow for this particular packet. Creates a new data object if needed. If the packet is not UDP or TCP, the NON_FLOW data object is returned. WARNING: This packet must be called with an IP packet or Ethernet packet


getFlowKeyForFilterEntry

public static java.lang.String getFlowKeyForFilterEntry(FilterEntry.PacketInfo info)
If we are graphing with a queue that is also performing filtering, there is no need to inspect the packet twice for the same fields (once to filter, once to get key). As a result, we provide this convenience method