it.geosolutions.geobatch.flow.event.listeners.cumulator
Class CumulatingProgressListener

java.lang.Object
  extended by it.geosolutions.geobatch.flow.event.ProgressListener
      extended by it.geosolutions.geobatch.flow.event.listeners.cumulator.CumulatingProgressListener
All Implemented Interfaces:
IProgressListener, java.util.EventListener

public class CumulatingProgressListener
extends ProgressListener

Cumulates all event messages into an internal List.

You can retrieve all cumulated messages using getMessages()

Author:
ETj

Field Summary
 
Fields inherited from class it.geosolutions.geobatch.flow.event.ProgressListener
configuration
 
Constructor Summary
CumulatingProgressListener(CumulatingProgressListenerConfiguration configuration, Identifiable owner)
           
 
Method Summary
 void clearMessages()
          Removes all cumulated messages
 void completed()
           
 void failed(java.lang.Throwable exception)
           
 java.util.List<java.lang.String> getMessages()
          Retrieves all the event messages arrived so far.
protected  void msg(java.lang.String msg)
           
 void paused()
           
 void progressing()
           
 void resumed()
           
 void started()
           
 void terminated()
           
 
Methods inherited from class it.geosolutions.geobatch.flow.event.ProgressListener
getOwner, getProgress, getTask, setProgress, setTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CumulatingProgressListener

public CumulatingProgressListener(CumulatingProgressListenerConfiguration configuration,
                                  Identifiable owner)
Method Detail

getMessages

public java.util.List<java.lang.String> getMessages()
Retrieves all the event messages arrived so far.

Returns:
the internal List instance.

clearMessages

public void clearMessages()
Removes all cumulated messages


msg

protected void msg(java.lang.String msg)

started

public void started()

progressing

public void progressing()

paused

public void paused()

resumed

public void resumed()

completed

public void completed()

failed

public void failed(java.lang.Throwable exception)

terminated

public void terminated()


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.