Class StandaloneScheduler
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.scheduler.StandaloneScheduler
-
- All Implemented Interfaces:
IScheduler
public class StandaloneScheduler extends java.lang.Object implements IScheduler
-
-
Constructor Summary
Constructors Constructor Description StandaloneScheduler(MPPQueryContext queryContext, QueryStateMachine stateMachine, java.util.List<FragmentInstance> instances, QueryType queryType, 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortFragmentInstance(FragmentInstanceId instanceId, java.lang.Throwable failureCause)voidcancelFragment(PlanFragmentId planFragmentId)FragmentInfogetFragmentInfo()io.airlift.units.DurationgetTotalCpuTime()voidstart()voidstop()
-
-
-
Constructor Detail
-
StandaloneScheduler
public StandaloneScheduler(MPPQueryContext queryContext, QueryStateMachine stateMachine, java.util.List<FragmentInstance> instances, QueryType queryType, 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)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceIScheduler
-
stop
public void stop()
- Specified by:
stopin interfaceIScheduler
-
getTotalCpuTime
public io.airlift.units.Duration getTotalCpuTime()
- Specified by:
getTotalCpuTimein interfaceIScheduler
-
getFragmentInfo
public FragmentInfo getFragmentInfo()
- Specified by:
getFragmentInfoin interfaceIScheduler
-
abortFragmentInstance
public void abortFragmentInstance(FragmentInstanceId instanceId, java.lang.Throwable failureCause)
- Specified by:
abortFragmentInstancein interfaceIScheduler
-
cancelFragment
public void cancelFragment(PlanFragmentId planFragmentId)
- Specified by:
cancelFragmentin interfaceIScheduler
-
-