peersim.reports
Class MemoryObserver

java.lang.Object
  extended by peersim.reports.MemoryObserver
All Implemented Interfaces:
Control

public class MemoryObserver
extends java.lang.Object
implements Control

This observer reports memory utilization (max, total and free, as defined by java.lang.Runtime).


Constructor Summary
MemoryObserver(java.lang.String prefix)
          Constructor to be instantiated in PeerSim.
 
Method Summary
 boolean execute()
          Performs arbitrary modifications or reports arbitrary information over the components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryObserver

public MemoryObserver(java.lang.String prefix)
Constructor to be instantiated in PeerSim.

Parameters:
prefix -
Method Detail

execute

public boolean execute()
Description copied from interface: Control
Performs arbitrary modifications or reports arbitrary information over the components.

Specified by:
execute in interface Control
Returns:
true if the simulation has to be stopped, false otherwise.