Vertex v1 = new Vertex("v1", TestProcessor.getProcDesc(payload), taskCount, defaultResource);
Vertex v2 = new Vertex("v2", TestProcessor.getProcDesc(payload), taskCount, defaultResource);
Vertex v3 = new Vertex("v3", TestProcessor.getProcDesc(payload), taskCount, defaultResource);
// Make each vertex manager fail on appropriate attempt
v1.setVertexManagerPlugin(new VertexManagerPluginDescriptor(
FailOnAttemptVertexManagerPlugin.class.getName())
.setUserPayload(new String("1").getBytes()));
v2.setVertexManagerPlugin(new VertexManagerPluginDescriptor(
FailOnAttemptVertexManagerPlugin.class.getName())
.setUserPayload(new String("2").getBytes()));
v3.setVertexManagerPlugin(new VertexManagerPluginDescriptor(
FailOnAttemptVertexManagerPlugin.class.getName())
.setUserPayload(new String("3").getBytes()));
dag.addVertex(v1).addVertex(v2).addVertex(v3);
dag.addEdge(new Edge(v1, v2,
new EdgeProperty(DataMovementType.SCATTER_GATHER,