Class DriverScheduler
- java.lang.Object
-
- org.apache.iotdb.db.mpp.execution.schedule.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortFragmentInstance(FragmentInstanceId instanceId)Abort all Drivers of the fragment instance.voidabortQuery(QueryId queryId)Abort all the instances in this query.org.apache.iotdb.commons.service.ServiceTypegetID()static DriverSchedulergetInstance()doublegetSchedulePriority(FragmentInstanceId instanceId)Return the schedule priority of a fragment.voidstart()voidstop()voidsubmitDrivers(QueryId queryId, java.util.List<IDriver> instances, long timeOut)Submit one or moreIDriverin one query for later scheduling.
-
-
-
Method Detail
-
getInstance
public static DriverScheduler getInstance()
-
start
public void start() throws org.apache.iotdb.commons.exception.StartupException- Specified by:
startin interfaceorg.apache.iotdb.commons.service.IService- Throws:
org.apache.iotdb.commons.exception.StartupException
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.iotdb.commons.service.IService
-
getID
public org.apache.iotdb.commons.service.ServiceType getID()
- Specified by:
getIDin interfaceorg.apache.iotdb.commons.service.IService
-
submitDrivers
public void submitDrivers(QueryId queryId, java.util.List<IDriver> instances, long timeOut)
Description copied from interface:IDriverSchedulerSubmit one or moreIDriverin one query for later scheduling.- Specified by:
submitDriversin interfaceIDriverScheduler- 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:IDriverSchedulerAbort all the instances in this query.- Specified by:
abortQueryin interfaceIDriverScheduler- Parameters:
queryId- the id of the query to be aborted.
-
abortFragmentInstance
public void abortFragmentInstance(FragmentInstanceId instanceId)
Description copied from interface:IDriverSchedulerAbort all Drivers of the fragment instance. If the instance is not existed, nothing will happen.- Specified by:
abortFragmentInstancein interfaceIDriverScheduler- Parameters:
instanceId- the id of the fragment instance to be aborted.
-
getSchedulePriority
public double getSchedulePriority(FragmentInstanceId instanceId)
Description copied from interface:IDriverSchedulerReturn the schedule priority of a fragment.- Specified by:
getSchedulePriorityin interfaceIDriverScheduler- Parameters:
instanceId- the fragment instance id.- Returns:
- the schedule priority.
-
-