org.gcube.data.analysis.tabulardata.operation.worker
Class Worker

java.lang.Object
  extended by java.util.Observable
      extended by org.gcube.data.analysis.tabulardata.operation.worker.Worker
All Implemented Interfaces:
Runnable

public abstract class Worker
extends Observable
implements Runnable


Constructor Summary
Worker(OperationInvocation sourceInvocation)
           
 
Method Summary
protected abstract  WorkerResult execute()
           
 WorkerException getException()
           
 float getProgress()
           
 WorkerResult getResult()
           
 OperationInvocation getSourceInvocation()
           
 WorkerStatus getStatus()
           
 void run()
           
protected  void updateProgress(float progress)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker

public Worker(OperationInvocation sourceInvocation)
Method Detail

updateProgress

protected void updateProgress(float progress)

execute

protected abstract WorkerResult execute()
                                 throws WorkerException
Throws:
WorkerException

run

public void run()
Specified by:
run in interface Runnable

getProgress

public float getProgress()

getException

public WorkerException getException()

getResult

public WorkerResult getResult()

getStatus

public WorkerStatus getStatus()

getSourceInvocation

public OperationInvocation getSourceInvocation()


Copyright © 2013. All Rights Reserved.