private static class RootInputInitFailedTransition implements
SingleArcTransition<VertexImpl, VertexEvent> {
@Override
public void transition(VertexImpl vertex, VertexEvent event) {
VertexEventRootInputFailed fe = (VertexEventRootInputFailed) event;
vertex.trySetTerminationCause(VertexTerminationCause.INIT_FAILURE);
vertex.addDiagnostic("Vertex Input: " + fe.getInputName()
+ " initializer failed.");
if (fe.getError() != null) {
LOG.error("Vertex Input: " + fe.getInputName() + " initializer failed",
fe.getError());
if (fe.getError().getMessage() != null) {
vertex.addDiagnostic(fe.getError().getMessage());
}
}
if (vertex.rootInputInitializerManager != null) {
vertex.rootInputInitializerManager.shutdown();
}