peersim.pastry
Class MSPastryObserver

java.lang.Object
  extended by peersim.pastry.MSPastryObserver
All Implemented Interfaces:
peersim.core.Control

public class MSPastryObserver
extends java.lang.Object
implements peersim.core.Control


Field Summary
static peersim.util.IncrementalStats hopStore
          keep statistics of the number of hops of every message delivered.
static peersim.util.IncrementalStats timeStore
          keep statistics of the time every every message needed for delivery.
 
Constructor Summary
MSPastryObserver(java.lang.String prefix)
           
 
Method Summary
 boolean execute()
          print the statistical snapshot of the current situation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hopStore

public static peersim.util.IncrementalStats hopStore
keep statistics of the number of hops of every message delivered.


timeStore

public static peersim.util.IncrementalStats timeStore
keep statistics of the time every every message needed for delivery.

Constructor Detail

MSPastryObserver

public MSPastryObserver(java.lang.String prefix)
Method Detail

execute

public boolean execute()
print the statistical snapshot of the current situation

Specified by:
execute in interface peersim.core.Control
Returns:
boolean