net.floodlightcontroller.debugcounter
Interface IDebugCounter

All Known Implementing Classes:
DebugCounter.CounterImpl, NullDebugCounter.NullCounterImpl

public interface IDebugCounter


Method Summary
 long getCounterValue()
          Retrieve the value of the counter from the global counter store
 void updateCounterNoFlush()
          Increments the counter by 1 thread-locally.
 void updateCounterNoFlush(int incr)
          Increments the counter thread-locally by the 'incr' specified.
 void updateCounterWithFlush()
          Increments the counter by 1 thread-locally, and immediately flushes to the global counter storage.
 void updateCounterWithFlush(int incr)
          Increments the counter thread-locally by the 'incr' specified, and immediately flushes to the global counter storage.
 

Method Detail

updateCounterWithFlush

void updateCounterWithFlush()
Increments the counter by 1 thread-locally, and immediately flushes to the global counter storage. This method should be used for counters that are updated outside the OF message processing pipeline.


updateCounterNoFlush

void updateCounterNoFlush()
Increments the counter by 1 thread-locally. Flushing to the global counter storage is delayed (happens with flushCounters() in IDebugCounterService), resulting in higher performance. This method should be used for counters updated in the OF message processing pipeline.


updateCounterWithFlush

void updateCounterWithFlush(int incr)
Increments the counter thread-locally by the 'incr' specified, and immediately flushes to the global counter storage. This method should be used for counters that are updated outside the OF message processing pipeline.


updateCounterNoFlush

void updateCounterNoFlush(int incr)
Increments the counter thread-locally by the 'incr' specified. Flushing to the global counter storage is delayed (happens with flushCounters() in IDebugCounterService), resulting in higher performance. This method should be used for counters updated in the OF message processing pipeline.


getCounterValue

long getCounterValue()
Retrieve the value of the counter from the global counter store