Documentation ¶
Index ¶
- func NewRaftLogGCTaskHandler() *raftLogGCTaskHandler
- func NewRegionTaskHandler(engines *engine_util.Engines, mgr *snap.SnapManager) *regionTaskHandler
- func NewSplitCheckHandler(engine *badger.DB, router message.RaftRouter, conf *config.Config) *splitCheckHandler
- type RaftLogGCTask
- type RegionTaskApply
- type RegionTaskDestroy
- type RegionTaskGen
- type SchedulerAskSplitTask
- type SchedulerRegionHeartbeatTask
- type SchedulerStoreHeartbeatTask
- type SchedulerTaskHandler
- type SplitCheckTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRaftLogGCTaskHandler ¶
func NewRaftLogGCTaskHandler() *raftLogGCTaskHandler
func NewRegionTaskHandler ¶
func NewRegionTaskHandler(engines *engine_util.Engines, mgr *snap.SnapManager) *regionTaskHandler
func NewSplitCheckHandler ¶
Types ¶
type RaftLogGCTask ¶
type RegionTaskApply ¶
type RegionTaskApply struct { RegionId uint64 // specify the region which the task is for. Notifier chan<- bool // when it finishes snapshot applying, it notifies notifier. SnapMeta *eraftpb.SnapshotMetadata // the region meta information of the snapshot StartKey []byte // `StartKey` and `EndKey` are origin region's range, it's used to clean up certain range of region before applying snapshot. EndKey []byte }
type RegionTaskDestroy ¶
type RegionTaskGen ¶
type SchedulerAskSplitTask ¶
type SchedulerStoreHeartbeatTask ¶
type SchedulerStoreHeartbeatTask struct { Stats *schedulerpb.StoreStats Engine *badger.DB Path string }
type SchedulerTaskHandler ¶
type SchedulerTaskHandler struct { SchedulerClient scheduler_client.Client // contains filtered or unexported fields }
func NewSchedulerTaskHandler ¶
func NewSchedulerTaskHandler(storeID uint64, SchedulerClient scheduler_client.Client, router message.RaftRouter) *SchedulerTaskHandler
func (*SchedulerTaskHandler) Handle ¶
func (r *SchedulerTaskHandler) Handle(t worker.Task)
func (*SchedulerTaskHandler) Start ¶
func (r *SchedulerTaskHandler) Start()
type SplitCheckTask ¶
Click to show internal directories.
Click to hide internal directories.