Class InstanceExecutor

  • All Implemented Interfaces:
    Runnable

    public class InstanceExecutor
    extends Object
    implements Runnable
    InstanceExecutor helps to group all necessary resources for an instance into a class and, provide methods to access these resources externally.

    It helps uniform the ways to access instance resources

    • Constructor Detail

      • InstanceExecutor

        public InstanceExecutor​(org.apache.heron.proto.system.PhysicalPlans.PhysicalPlan physicalPlan,
                                String instanceId)
    • Method Detail

      • getStreamInQueue

        public org.apache.heron.common.basics.Communicator<com.google.protobuf.Message> getStreamInQueue()
      • getStreamOutQueue

        public org.apache.heron.common.basics.Communicator<com.google.protobuf.Message> getStreamOutQueue()
      • getMetricsOutQueue

        public org.apache.heron.common.basics.Communicator<org.apache.heron.proto.system.Metrics.MetricPublisherPublishMessage> getMetricsOutQueue()
      • getInstanceId

        public String getInstanceId()
      • getComponentName

        public String getComponentName()
      • getTaskId

        public int getTaskId()
      • createInstance

        protected org.apache.heron.instance.IInstance createInstance()
      • createPhysicalPlanHelper

        protected org.apache.heron.common.utils.misc.PhysicalPlanHelper createPhysicalPlanHelper​(org.apache.heron.proto.system.PhysicalPlans.PhysicalPlan physicalPlan,
                                                                                                 String instanceId,
                                                                                                 org.apache.heron.common.utils.metrics.MetricsCollector metricsCollector)
      • initInstanceManager

        protected void initInstanceManager()
      • handleControlSignal

        protected void handleControlSignal()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • stop

        public void stop()
      • activate

        public void activate()
      • deactivate

        public void deactivate()