org.esa.beam.framework.gpf.monitor
Class TileComputationObserver

java.lang.Object
  extended by org.esa.beam.framework.gpf.monitor.TileComputationObserver
Direct Known Subclasses:
TileComputationEventLogger, TileUsageReportGenerator

public abstract class TileComputationObserver
extends Object

Gets notified once a new tile has been computed.

The framework uses observers as follows:

  1. start() is called only once before any other method is called.
  2. tileComputed(TileComputationEvent) is called for each tile computed by any GPF Operator.
  3. stop() is called after a Product has been fully written using the WriteOp operator.

Since:
BEAM 4.9
Author:
Norman Fomferra

Constructor Summary
TileComputationObserver()
           
 
Method Summary
 Logger getLogger()
           
 void setLogger(Logger logger)
           
abstract  void start()
          Starts observation of tile computation events.
abstract  void stop()
          Stops observation of tile computation events.
abstract  void tileComputed(TileComputationEvent event)
          Called each time a tile has been computed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileComputationObserver

public TileComputationObserver()
Method Detail

getLogger

public final Logger getLogger()
Returns:
A logger.

setLogger

public final void setLogger(Logger logger)

start

public abstract void start()
Starts observation of tile computation events.


tileComputed

public abstract void tileComputed(TileComputationEvent event)
Called each time a tile has been computed. This method is usually called asynchronously by multiple threads. It should perform very fast.

Parameters:
event - The tile computation event.

stop

public abstract void stop()
Stops observation of tile computation events.



Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.