public class ProgressFileReader extends Object implements ProgressFileReaderInterface
Instances of this class are NOT thread-safe.
Modifier and Type | Class and Description |
---|---|
static interface |
ProgressFileReader.Listener |
class |
ProgressFileReader.ProgressFileReaderThread |
Constructor and Description |
---|
ProgressFileReader() |
Modifier and Type | Method and Description |
---|---|
int |
getProgress() |
Path |
getProgressFile() |
void |
register(ProgressFileReader.Listener listener) |
boolean |
start(File workingDir,
TaskId taskId) |
void |
stop() |
void |
unregister(ProgressFileReader.Listener listener) |
public boolean start(File workingDir, TaskId taskId)
start
in interface ProgressFileReaderInterface
public int getProgress()
getProgress
in interface ProgressFileReaderInterface
public Path getProgressFile()
getProgressFile
in interface ProgressFileReaderInterface
public void register(ProgressFileReader.Listener listener)
public void unregister(ProgressFileReader.Listener listener)
public void stop()
stop
in interface ProgressFileReaderInterface