Examples of SatisfyStateData


Examples of org.springframework.yarn.am.grid.support.SatisfyStateData

    // modify - set only host1
    hosts.clear();
    hosts.put("host1", 1);
    appmaster.modifyContainerCluster("foo", new ProjectionData(0,hosts,null));

    SatisfyStateData satisfyState = appmaster.getContainerClusters().get("foo").getGridProjection().getSatisfyState();
    assertThat(satisfyState.getRemoveData().size(), is(3));

//    Map<String, Integer> hostsfromprojection = appmaster.getContainerClusters().get("foo").getGridProjection().getProjectionData().getHosts();
//    assertThat(hostsfromprojection.get("host1"), is(1));
//    assertThat(hostsfromprojection.get("host2"), is(1));
//
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.SatisfyStateData

      GridProjection gridProjection = cluster.getGridProjection();
      gridProjection.setProjectionData(projectionData);
    }

    if (cluster != null) {
      SatisfyStateData satisfyData = cluster.getGridProjection().getSatisfyState();
      if (satisfyData != null) {
        appmaster.handleSatisfyStateData(cluster, satisfyData);
      }
    }
View Full Code Here

Examples of org.springframework.yarn.am.grid.support.SatisfyStateData

  @Override
  public void execute(MessageHeaders headers) {
    ContainerCluster cluster = headers.get("containercluster", ContainerCluster.class);
    AbstractContainerClusterAppmaster appmaster = headers.get("appmaster", AbstractContainerClusterAppmaster.class);
    SatisfyStateData satisfyData = new SatisfyStateData(new ArrayList<GridMember>(cluster.getGridProjection().getMembers()));
    appmaster.handleSatisfyStateData(cluster, satisfyData);
//    ContainerCluster removed = appmaster.clusters.remove(cluster.getId());
//    appmaster.projectedGrid.removeProjection(removed.getGridProjection());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.