it.geosolutions.geobatch.flow.event.listeners.status
Class StatusProgressListener

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

public class StatusProgressListener
extends ProgressListener

Remember the state of the event firer.

Author:
ETj , (r2)Carlo Cancellieri - carlo.cancellieri@geo-solutions.it

Field Summary
protected  boolean completed
           
protected  boolean failed
           
protected  java.lang.Throwable failException
           
protected  boolean paused
           
protected  boolean started
           
protected  boolean terminated
           
 
Fields inherited from class it.geosolutions.geobatch.flow.event.ProgressListener
configuration
 
Constructor Summary
StatusProgressListener(StatusProgressListenerConfiguration configuration, Identifiable owner)
           
 
Method Summary
 void completed()
           
 void failed(java.lang.Throwable exception)
           
 java.lang.Throwable getFailException()
           
 boolean isCompleted()
           
 boolean isFailed()
           
 boolean isPaused()
           
 boolean isStarted()
           
 boolean isTerminated()
           
 void paused()
           
 void progressing()
          This event should trigger some refresh on interactive displays, but we don't need it
 void resumed()
           
 void started()
           
 void terminated()
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

started

protected boolean started

paused

protected boolean paused

failed

protected boolean failed

completed

protected boolean completed

terminated

protected boolean terminated

failException

protected java.lang.Throwable failException
Constructor Detail

StatusProgressListener

public StatusProgressListener(StatusProgressListenerConfiguration configuration,
                              Identifiable owner)
Method Detail

started

public void started()
Parameters:
source -

isStarted

public boolean isStarted()
Returns:

progressing

public void progressing()
This event should trigger some refresh on interactive displays, but we don't need it


paused

public void paused()

isPaused

public boolean isPaused()
Returns:

resumed

public void resumed()

completed

public void completed()

isCompleted

public boolean isCompleted()
Returns:

failed

public void failed(java.lang.Throwable exception)

isFailed

public boolean isFailed()
Returns:

getFailException

public java.lang.Throwable getFailException()
Returns:

terminated

public void terminated()

isTerminated

public boolean isTerminated()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.