Documentation ¶
Index ¶
- type ScheduleOptions
- func (mso *ScheduleOptions) GetLeaderScheduleLimit() uint64
- func (mso *ScheduleOptions) GetMaxMergeRegionKeys() uint64
- func (mso *ScheduleOptions) GetMaxMergeRegionSize() uint64
- func (mso *ScheduleOptions) GetMaxReplicas() int
- func (mso *ScheduleOptions) GetMaxStoreDownTime() time.Duration
- func (mso *ScheduleOptions) GetRegionScheduleLimit() uint64
- func (mso *ScheduleOptions) GetReplicaScheduleLimit() uint64
- func (mso *ScheduleOptions) SetMaxReplicas(replicas int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleOptions ¶
type ScheduleOptions struct { RegionScheduleLimit uint64 LeaderScheduleLimit uint64 ReplicaScheduleLimit uint64 MaxSnapshotCount uint64 MaxPendingPeerCount uint64 MaxMergeRegionSize uint64 MaxMergeRegionKeys uint64 MaxStoreDownTime time.Duration MaxReplicas int }
ScheduleOptions is a mock of ScheduleOptions which implements Options interface
func NewScheduleOptions ¶
func NewScheduleOptions() *ScheduleOptions
NewScheduleOptions creates a mock schedule option.
func (*ScheduleOptions) GetLeaderScheduleLimit ¶
func (mso *ScheduleOptions) GetLeaderScheduleLimit() uint64
GetLeaderScheduleLimit mocks method
func (*ScheduleOptions) GetMaxMergeRegionKeys ¶
func (mso *ScheduleOptions) GetMaxMergeRegionKeys() uint64
GetMaxMergeRegionKeys mocks method
func (*ScheduleOptions) GetMaxMergeRegionSize ¶
func (mso *ScheduleOptions) GetMaxMergeRegionSize() uint64
GetMaxMergeRegionSize mocks method
func (*ScheduleOptions) GetMaxReplicas ¶
func (mso *ScheduleOptions) GetMaxReplicas() int
GetMaxReplicas mocks method
func (*ScheduleOptions) GetMaxStoreDownTime ¶
func (mso *ScheduleOptions) GetMaxStoreDownTime() time.Duration
GetMaxStoreDownTime mocks method
func (*ScheduleOptions) GetRegionScheduleLimit ¶
func (mso *ScheduleOptions) GetRegionScheduleLimit() uint64
GetRegionScheduleLimit mocks method
func (*ScheduleOptions) GetReplicaScheduleLimit ¶
func (mso *ScheduleOptions) GetReplicaScheduleLimit() uint64
GetReplicaScheduleLimit mocks method
func (*ScheduleOptions) SetMaxReplicas ¶
func (mso *ScheduleOptions) SetMaxReplicas(replicas int)
SetMaxReplicas mocks method
Click to show internal directories.
Click to hide internal directories.