Interface IDriverScheduler

  • All Known Implementing Classes:
    DriverScheduler

    public interface IDriverScheduler
    the interface of fragment instance scheduling
    • Method Detail

      • submitDrivers

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

        void abortQuery​(QueryId queryId)
        Abort all the instances in this query.
        Parameters:
        queryId - the id of the query to be aborted.
      • abortFragmentInstance

        void abortFragmentInstance​(FragmentInstanceId instanceId)
        Abort all Drivers of the fragment instance. If the instance is not existed, nothing will happen.
        Parameters:
        instanceId - the id of the fragment instance to be aborted.
      • getSchedulePriority

        double getSchedulePriority​(FragmentInstanceId instanceId)
        Return the schedule priority of a fragment.
        Parameters:
        instanceId - the fragment instance id.
        Returns:
        the schedule priority.
        Throws:
        java.lang.IllegalStateException - if the instance has already been cleared.