eaLib API Docs
Last Modified : January 7 2002

mss.ea.stat
Interface DataTracker

All Known Implementing Classes:
DefaultDataTracker

public interface DataTracker

Interface for a tracker that gathers data from collectors.

Since:
0.1
Version:
0.1 (08-21-2001)
Author:
Andreas Rummler

Method Summary
 void addCollector(DataCollector dc)
          Registers a data collector to this data tracker.
 void clearBuffer()
          Clears the internal storage buffer.
 void flushBuffer()
          Flushes the internal storage buffer.
 void track(DataCollector collector, java.lang.Object data)
          Receives data from a data collector.
 

Method Detail

track

public void track(DataCollector collector,
                  java.lang.Object data)
Receives data from a data collector. The data should be stored in one or more internal buffers. The tracking is performed passively. This method is invoked by a collector to send as message to the tracker that new data has arrived at the collector and the tracker should store the data.
Parameters:
collector - data collector

clearBuffer

public void clearBuffer()
Clears the internal storage buffer.

flushBuffer

public void flushBuffer()
Flushes the internal storage buffer. The content of the buffer could be written to a file or simply to the console.

addCollector

public void addCollector(DataCollector dc)
Registers a data collector to this data tracker.

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS