taegeonum commented on a change in pull request #227: [NEMO-398]
ExecutorRepresenter interface and DefaultExecutorRepresenter
URL: https://github.com/apache/incubator-nemo/pull/227#discussion_r310065865
##########
File path:
runtime/executor/src/test/java/org/apache/nemo/runtime/executor/MetricFlushTest.java
##########
@@ -72,16 +72,16 @@ public void test() throws InjectionException,
ExecutionException, InterruptedExc
final MessageSender masterToWorkerSender = masterMessageEnvironment
.asyncConnect(WORKER,
MessageEnvironment.EXECUTOR_MESSAGE_LISTENER_ID).get();
- final Set<ExecutorRepresenter> executorRepresenterSet = new HashSet<>();
+ final Set<DefaultExecutorRepresenter> defaultExecutorRepresenterSet = new
HashSet<>();
for (int i = 0; i < EXECUTOR_NUM; i++) {
- executorRepresenterSet.add(newWorker(masterToWorkerSender));
+ defaultExecutorRepresenterSet.add(newWorker(masterToWorkerSender));
}
final ExecutorRegistry executorRegistry = mock(ExecutorRegistry.class);
doAnswer((Answer<Void>) invocationOnMock -> {
- final Consumer<Set<ExecutorRepresenter>> consumer = (Consumer)
invocationOnMock.getArguments()[0];
- consumer.accept(executorRepresenterSet);
+ final Consumer<Set<DefaultExecutorRepresenter>> consumer = (Consumer)
invocationOnMock.getArguments()[0];
Review comment:
ExecutorRepresenter
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services