EVolve.data
Interface Worker

All Known Implementing Classes:
DataManager

public interface Worker


Field Summary
static int STATE_FINISHED
           
static int STATE_NOT_STARTED
           
static int STATE_PAUSED
           
static int STATE_PAUSING
           
static int STATE_RUNNING
           
static int STATE_STOPPED
           
static int STATE_STOPPING
           
 
Method Summary
 long getCurrentProgress()
           
 int getCurrentState()
           
 long getMaxProgress()
           
 void join()
           
 void pause()
           
 void resetState()
           
 void resume()
           
 void start()
           
 void stop()
           
 

Field Detail

STATE_NOT_STARTED

public static final int STATE_NOT_STARTED
See Also:
Constant Field Values

STATE_RUNNING

public static final int STATE_RUNNING
See Also:
Constant Field Values

STATE_PAUSING

public static final int STATE_PAUSING
See Also:
Constant Field Values

STATE_PAUSED

public static final int STATE_PAUSED
See Also:
Constant Field Values

STATE_STOPPING

public static final int STATE_STOPPING
See Also:
Constant Field Values

STATE_STOPPED

public static final int STATE_STOPPED
See Also:
Constant Field Values

STATE_FINISHED

public static final int STATE_FINISHED
See Also:
Constant Field Values
Method Detail

pause

public void pause()

resume

public void resume()

stop

public void stop()

getCurrentProgress

public long getCurrentProgress()

getMaxProgress

public long getMaxProgress()

getCurrentState

public int getCurrentState()

resetState

public void resetState()

start

public void start()

join

public void join()
          throws java.lang.InterruptedException
java.lang.InterruptedException