Class ClusterScheduler

  • All Implemented Interfaces:
    IScheduler

    public class ClusterScheduler
    extends java.lang.Object
    implements IScheduler
    QueryScheduler is used to dispatch the fragment instances of a query to target nodes. And it will continue to collect and monitor the query execution before the query is finished.

    Later, we can add more control logic for a QueryExecution such as retry, kill and so on by this scheduler.

    • Constructor Detail

      • ClusterScheduler

        public ClusterScheduler​(MPPQueryContext queryContext,
                                QueryStateMachine stateMachine,
                                java.util.List<FragmentInstance> instances,
                                QueryType queryType,
                                java.util.concurrent.ExecutorService executor,
                                java.util.concurrent.ExecutorService writeOperationExecutor,
                                java.util.concurrent.ScheduledExecutorService scheduledExecutor,
                                org.apache.iotdb.commons.client.IClientManager<org.apache.iotdb.common.rpc.thrift.TEndPoint,​org.apache.iotdb.commons.client.sync.SyncDataNodeInternalServiceClient> internalServiceClientManager)