public final class DFSEvaluatorPreserver extends Object implements EvaluatorPreserver, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer, which in turn closes the FileSystem.
|
void |
recordAllocatedEvaluator(String id)
Adds the allocated evaluator entry to the evaluator log.
|
void |
recordRemovedEvaluator(String id)
Adds the removed evaluator entry to the evaluator log.
|
Set<String> |
recoverEvaluators()
Recovers the set of evaluators that are alive.
|
public Set<String> recoverEvaluators()
recoverEvaluators in interface EvaluatorPreserverpublic void recordAllocatedEvaluator(String id)
recordAllocatedEvaluator in interface EvaluatorPreserverid - public void recordRemovedEvaluator(String id)
recordRemovedEvaluator in interface EvaluatorPreserverid - public void close() throws Exception
close in interface AutoCloseableExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.