Interface IDriverScheduler
-
- All Known Implementing Classes:
DriverScheduler
public interface IDriverSchedulerthe interface of fragment instance scheduling
-
-
Method Summary
All Methods Instance Methods Abstract 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.doublegetSchedulePriority(FragmentInstanceId instanceId)Return the schedule priority of a fragment.voidsubmitDrivers(QueryId queryId, java.util.List<IDriver> instances, long timeOut)Submit one or moreIDriverin one query for later scheduling.
-
-
-
Method Detail
-
submitDrivers
void submitDrivers(QueryId queryId, java.util.List<IDriver> instances, long timeOut)
Submit one or moreIDriverin 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.
-
-