Preconditions.checkState(dataInformationEventSeen == false);
Preconditions
.checkState(
managedVertex.getTotalTasks() == -1,
"Parallelism for the vertex should be set to -1 if the InputInitializer is setting parallelism");
RootInputConfigureVertexTasksEvent cEvent = (RootInputConfigureVertexTasksEvent) event;
managedVertex.setVertexLocationHint(new VertexLocationHint(cEvent
.getNumTasks(), cEvent.getTaskLocationHints()));
managedVertex.setParallelism(cEvent.getNumTasks(), null);
}
if (event instanceof RootInputUpdatePayloadEvent) {
// No tasks should have been started yet. Checked by initial state check.
Preconditions.checkState(dataInformationEventSeen == false);
inputDescriptor.setUserPayload(((RootInputUpdatePayloadEvent) event)