public final class DFSEvaluatorPreserver extends Object implements EvaluatorPreserver, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the readerWriter, 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 EvaluatorPreserver
public void recordAllocatedEvaluator(String id)
recordAllocatedEvaluator
in interface EvaluatorPreserver
id
- public void recordRemovedEvaluator(String id)
recordRemovedEvaluator
in interface EvaluatorPreserver
id
- public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.