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