rabbit.util
Class Counter

java.lang.Object
  extended byrabbit.util.Counter

public class Counter
extends java.lang.Object

This class counts different messages


Constructor Summary
Counter()
           
 
Method Summary
 int get(java.lang.String key)
          get the current count for an event.
 void inc(java.lang.String log)
          increase a logentry.
 java.util.Enumeration keys()
          get all events
 java.util.Enumeration values()
          get all values (unsorted)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Method Detail

inc

public void inc(java.lang.String log)
increase a logentry.

Parameters:
log - the event to increase

keys

public java.util.Enumeration keys()
get all events

Returns:
an Enumeration of all events

values

public java.util.Enumeration values()
get all values (unsorted)

Returns:
an Enumeration of all values

get

public int get(java.lang.String key)
get the current count for an event.

Parameters:
key - the event were intrested in
Returns:
the current count of event.