Qizx fe-4.4p2 API

com.qizx.api.admin
Class BackgroundTask

java.lang.Object
  extended by com.qizx.api.admin.BackgroundTask
All Implemented Interfaces:
com.qizx.util.ProgressHandler

public class BackgroundTask
extends Object
implements com.qizx.util.ProgressHandler


Constructor Summary
BackgroundTask(String taskName, String libraryName)
           
 
Method Summary
 void completed()
          Notifies completion of the task.
 double getDone()
           
 long getEndTime()
           
 String getLibraryName()
           
 long getStartTime()
           
 String getTaskName()
           
 void progressDone(double fractionDone)
          Signals progress of task.
 void setDone(double done)
           
 void setEndTime(long endTime)
           
 void setStartTime(long start)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackgroundTask

public BackgroundTask(String taskName,
                      String libraryName)
Method Detail

getTaskName

public String getTaskName()

getLibraryName

public String getLibraryName()

getStartTime

public long getStartTime()

setStartTime

public void setStartTime(long start)

getEndTime

public long getEndTime()

setEndTime

public void setEndTime(long endTime)

getDone

public double getDone()

setDone

public void setDone(double done)

progressDone

public void progressDone(double fractionDone)
Description copied from interface: com.qizx.util.ProgressHandler
Signals progress of task. Value is a fraction between 0 and 1 (i.e 100%). TODO FIX

Specified by:
progressDone in interface com.qizx.util.ProgressHandler

completed

public void completed()
Description copied from interface: com.qizx.util.ProgressHandler
Notifies completion of the task. Should be used rather than progressDone(1)

Specified by:
completed in interface com.qizx.util.ProgressHandler

toString

public String toString()
Overrides:
toString in class Object

© 2010 Axyana Software