rabbit.proxy
Class TrafficLoggerHandler

java.lang.Object
  extended by rabbit.proxy.TrafficLoggerHandler

public class TrafficLoggerHandler
extends Object

A class to track of multiple network flows.

Author:
Robert Olofsson

Constructor Summary
TrafficLoggerHandler()
          Create a new TrafficLoggerHandler
 
Method Summary
 void addTo(TrafficLoggerHandler other)
          Add our statistics to the given other TrafficLoggerHandler.
 void clear()
          Zero out all statistics in this TrafficLoggerHandler.
 TrafficLogger getCache()
          Get the TrafficLogger with the traffic statistics for cache data
 TrafficLogger getClient()
          Get the TrafficLogger with the traffic statistics for client data
 TrafficLogger getNetwork()
          Get the TrafficLogger with the traffic statistics for network data
 TrafficLogger getProxy()
          Get the TrafficLogger with the traffic statistics for data to and from this proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficLoggerHandler

public TrafficLoggerHandler()
Create a new TrafficLoggerHandler

Method Detail

getClient

public TrafficLogger getClient()
Get the TrafficLogger with the traffic statistics for client data

Returns:
the TrafficLogger for the client data

getNetwork

public TrafficLogger getNetwork()
Get the TrafficLogger with the traffic statistics for network data

Returns:
the TrafficLogger for network data

getCache

public TrafficLogger getCache()
Get the TrafficLogger with the traffic statistics for cache data

Returns:
the TrafficLogger for cache data

getProxy

public TrafficLogger getProxy()
Get the TrafficLogger with the traffic statistics for data to and from this proxy

Returns:
the TrafficLogger for the proxy data

addTo

public void addTo(TrafficLoggerHandler other)
Add our statistics to the given other TrafficLoggerHandler.

Parameters:
other - the TrafficLoggerHandler to update

clear

public void clear()
Zero out all statistics in this TrafficLoggerHandler.