public final class DFSEvaluatorLogAppendReaderWriter extends Object implements DFSEvaluatorLogReaderWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the FileSystem.
|
CloseableIterable<String> |
readFromEvaluatorLog()
Reads a formatted entry (addition or removal) from the DFS evaluator log.
|
void |
writeToEvaluatorLog(String formattedEntry)
Writes a formatted entry (addition or removal) for an Evaluator ID into the DFS evaluator log.
|
public void writeToEvaluatorLog(String formattedEntry) throws IOException
writeToEvaluatorLog
in interface DFSEvaluatorLogReaderWriter
formattedEntry
- The formatted entry (entry with evaluator ID and addition/removal information).IOException
public CloseableIterable<String> readFromEvaluatorLog() throws IOException
DFSEvaluatorLogReaderWriter
readFromEvaluatorLog
in interface DFSEvaluatorLogReaderWriter
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.