Search in sources :

Example 6 with IRepacking

use of com.twitter.heron.spi.packing.IRepacking in project incubator-heron by apache.

the class CommonPackingTests method repack.

private PackingPlan repack(TopologyAPI.Topology testTopology, PackingPlan initialPackingPlan, Map<String, Integer> componentChanges) {
    IRepacking repacking = getRepackingImpl();
    repacking.initialize(PackingTestUtils.newTestConfig(testTopology), testTopology);
    return repacking.repack(initialPackingPlan, componentChanges);
}
Also used : IRepacking(com.twitter.heron.spi.packing.IRepacking)

Aggregations

IRepacking (com.twitter.heron.spi.packing.IRepacking)6 VisibleForTesting (com.google.common.annotations.VisibleForTesting)3 PackingPlan (com.twitter.heron.spi.packing.PackingPlan)3 PackingPlanProtoDeserializer (com.twitter.heron.spi.packing.PackingPlanProtoDeserializer)2 PackingPlanProtoSerializer (com.twitter.heron.spi.packing.PackingPlanProtoSerializer)2 HashMap (java.util.HashMap)2 TopologyAPI (com.twitter.heron.api.generated.TopologyAPI)1 Topology (com.twitter.heron.api.generated.TopologyAPI.Topology)1 TopologyProvider (com.twitter.heron.healthmgr.common.TopologyProvider)1 Config (com.twitter.heron.spi.common.Config)1 Test (org.junit.Test)1