Package eu.stratosphere.nephele.managementgraph

Examples of eu.stratosphere.nephele.managementgraph.ManagementGroupVertex


      final ManagementStage parent = entry.getValue();

      for (int i = 0; i < executionStage.getNumberOfStageMembers(); i++) {

        final ExecutionGroupVertex groupVertex = executionStage.getStageMember(i);
        final ManagementGroupVertex managementGroupVertex = new ManagementGroupVertex(parent, groupVertex
          .getName());

        groupMap.put(groupVertex, managementGroupVertex);
      }
    }

    // Second, make sure all edges are created and connected properly
    iterator = stageMap.entrySet().iterator();
    while (iterator.hasNext()) {

      final Map.Entry<ExecutionStage, ManagementStage> entry = iterator.next();
      final ExecutionStage executionStage = entry.getKey();
      for (int i = 0; i < executionStage.getNumberOfStageMembers(); i++) {

        final ExecutionGroupVertex sourceVertex = executionStage.getStageMember(i);
        final ManagementGroupVertex sourceGroupVertex = groupMap.get(sourceVertex);

        for (int j = 0; j < sourceVertex.getNumberOfForwardLinks(); j++) {

          final ExecutionGroupEdge edge = sourceVertex.getForwardEdge(j);
          final ExecutionGroupVertex targetVertex = edge.getTargetVertex();
          final ManagementGroupVertex targetGroupVertex = groupMap.get(targetVertex);
          new ManagementGroupEdge(sourceGroupVertex, j, targetGroupVertex, edge.getIndexOfInputGate(), edge
            .getChannelType());
        }
      }
    }
View Full Code Here


    final Map<ExecutionGate, ManagementGate> gateMap = new HashMap<ExecutionGate, ManagementGate>();

    while (iterator.hasNext()) {

      final ExecutionVertex ev = iterator.next();
      final ManagementGroupVertex parent = groupMap.get(ev.getGroupVertex());

      final AbstractInstance instance = ev.getAllocatedResource().getInstance();
      final ManagementVertex managementVertex = new ManagementVertex(
            parent,
            ev.getID().toManagementVertexID(),
View Full Code Here

   
    try {
   
    ManagementGraph jobManagementGraph = jobmanager.getManagementGraph(jobEvent.getJobID());
   
    ManagementGroupVertex groupvertex = jobManagementGraph.getGroupVertexByID(groupvertexId);
   
    // Serialize ManagementGraph to json
    wrt.write("{\"groupvertex\": "+groupvertex.toJson()+",");
   
    wrt.write("\"verticetimes\": {");
    boolean first = true;
    for(ManagementGroupVertex groupVertex : jobManagementGraph.getGroupVerticesInTopologicalOrder()) {
     
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.managementgraph.ManagementGroupVertex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.