Search in sources :

Example 11 with PhysicalPlanHelper

use of org.apache.heron.common.utils.misc.PhysicalPlanHelper in project heron by twitter.

the class InstanceExecutorTest method testCreatePhysicalPlanHelper.

/**
 * Method: createPhysicalPlanHelper(PhysicalPlans.PhysicalPlan physicalPlan, String instanceId, MetricsCollector metricsCollector)
 */
@Test
public void testCreatePhysicalPlanHelper() throws Exception {
    PhysicalPlanHelper physicalPlanHelper = instanceExecutor.createPhysicalPlanHelper(plan, instanceId, Mockito.mock(MetricsCollector.class));
    Assert.assertNotNull(physicalPlanHelper.getTopologyContext());
}
Also used : MetricsCollector(org.apache.heron.common.utils.metrics.MetricsCollector) PhysicalPlanHelper(org.apache.heron.common.utils.misc.PhysicalPlanHelper) Test(org.junit.Test) TopologyManagerTest(org.apache.heron.simulator.utils.TopologyManagerTest)

Aggregations

PhysicalPlanHelper (org.apache.heron.common.utils.misc.PhysicalPlanHelper)11 PhysicalPlans (org.apache.heron.proto.system.PhysicalPlans)5 InstanceControlMsg (org.apache.heron.instance.InstanceControlMsg)4 Test (org.junit.Test)4 ByteString (com.google.protobuf.ByteString)1 Message (com.google.protobuf.Message)1 InetSocketAddress (java.net.InetSocketAddress)1 ClosedChannelException (java.nio.channels.ClosedChannelException)1 ServerSocketChannel (java.nio.channels.ServerSocketChannel)1 SocketChannel (java.nio.channels.SocketChannel)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 TopologyAPI (org.apache.heron.api.generated.TopologyAPI)1 OutgoingPacket (org.apache.heron.common.network.OutgoingPacket)1 REQID (org.apache.heron.common.network.REQID)1 MetricsCollector (org.apache.heron.common.utils.metrics.MetricsCollector)1 HeronTuples (org.apache.heron.proto.system.HeronTuples)1 TestBolt (org.apache.heron.resource.TestBolt)1 TestSpout (org.apache.heron.resource.TestSpout)1 TopologyManagerTest (org.apache.heron.simulator.utils.TopologyManagerTest)1