Class TileComputationObserver

java.lang.Object
org.esa.snap.core.gpf.monitor.TileComputationObserver
Direct Known Subclasses:
OperatorRuntimeReport, 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
  • Constructor Details

    • TileComputationObserver

      public TileComputationObserver()
  • Method Details

    • 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.