Class DriverScheduler

  • All Implemented Interfaces:
    org.apache.iotdb.commons.service.IService, IDriverScheduler

    public class DriverScheduler
    extends java.lang.Object
    implements IDriverScheduler, org.apache.iotdb.commons.service.IService
    the manager of fragment instances scheduling
    • Method Detail

      • start

        public void start()
                   throws org.apache.iotdb.commons.exception.StartupException
        Specified by:
        start in interface org.apache.iotdb.commons.service.IService
        Throws:
        org.apache.iotdb.commons.exception.StartupException
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.iotdb.commons.service.IService
      • getID

        public org.apache.iotdb.commons.service.ServiceType getID()
        Specified by:
        getID in interface org.apache.iotdb.commons.service.IService
      • submitDrivers

        public void submitDrivers​(QueryId queryId,
                                  java.util.List<IDriver> instances,
                                  long timeOut)
        Description copied from interface: IDriverScheduler
        Submit one or more IDriver in one query for later scheduling.
        Specified by:
        submitDrivers in interface IDriverScheduler
        Parameters:
        queryId - the queryId these instances belong to.
        instances - the submitted instances.
        timeOut - the query timeout
      • abortQuery

        public void abortQuery​(QueryId queryId)
        Description copied from interface: IDriverScheduler
        Abort all the instances in this query.
        Specified by:
        abortQuery in interface IDriverScheduler
        Parameters:
        queryId - the id of the query to be aborted.
      • abortFragmentInstance

        public void abortFragmentInstance​(FragmentInstanceId instanceId)
        Description copied from interface: IDriverScheduler
        Abort all Drivers of the fragment instance. If the instance is not existed, nothing will happen.
        Specified by:
        abortFragmentInstance in interface IDriverScheduler
        Parameters:
        instanceId - the id of the fragment instance to be aborted.