mockoption

package
v3.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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
	MergeScheduleLimit           uint64
	HotRegionScheduleLimit       uint64
	StoreBalanceRate             float64
	MaxSnapshotCount             uint64
	MaxPendingPeerCount          uint64
	MaxMergeRegionSize           uint64
	MaxMergeRegionKeys           uint64
	SchedulerMaxWaitingOperator  uint64
	SplitMergeInterval           time.Duration
	EnableOneWayMerge            bool
	MaxStoreDownTime             time.Duration
	MaxReplicas                  int
	LocationLabels               []string
	StrictlyMatchLabel           bool
	HotRegionCacheHitsThreshold  int
	TolerantSizeRatio            float64
	LowSpaceRatio                float64
	HighSpaceRatio               float64
	DisableLearner               bool
	DisableRemoveDownReplica     bool
	DisableReplaceOfflineReplica bool
	DisableMakeUpReplica         bool
	DisableRemoveExtraReplica    bool
	DisableLocationReplacement   bool
	DisableNamespaceRelocation   bool
	LabelProperties              map[string][]*metapb.StoreLabel
}

ScheduleOptions is a mock of ScheduleOptions which implements Options interface

func NewScheduleOptions

func NewScheduleOptions() *ScheduleOptions

NewScheduleOptions creates a mock schedule option.

func (*ScheduleOptions) GetEnableOneWayMerge

func (mso *ScheduleOptions) GetEnableOneWayMerge() bool

GetEnableOneWayMerge mocks method

func (*ScheduleOptions) GetHighSpaceRatio

func (mso *ScheduleOptions) GetHighSpaceRatio() float64

GetHighSpaceRatio mocks method

func (*ScheduleOptions) GetHotRegionCacheHitsThreshold

func (mso *ScheduleOptions) GetHotRegionCacheHitsThreshold() int

GetHotRegionCacheHitsThreshold mocks method

func (*ScheduleOptions) GetHotRegionScheduleLimit

func (mso *ScheduleOptions) GetHotRegionScheduleLimit(name string) uint64

GetHotRegionScheduleLimit mocks method

func (*ScheduleOptions) GetLeaderScheduleLimit

func (mso *ScheduleOptions) GetLeaderScheduleLimit(name string) uint64

GetLeaderScheduleLimit mocks method

func (*ScheduleOptions) GetLocationLabels

func (mso *ScheduleOptions) GetLocationLabels() []string

GetLocationLabels mocks method

func (*ScheduleOptions) GetLowSpaceRatio

func (mso *ScheduleOptions) GetLowSpaceRatio() float64

GetLowSpaceRatio 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) GetMaxPendingPeerCount

func (mso *ScheduleOptions) GetMaxPendingPeerCount() uint64

GetMaxPendingPeerCount mocks method

func (*ScheduleOptions) GetMaxReplicas

func (mso *ScheduleOptions) GetMaxReplicas(name string) int

GetMaxReplicas mocks method

func (*ScheduleOptions) GetMaxSnapshotCount

func (mso *ScheduleOptions) GetMaxSnapshotCount() uint64

GetMaxSnapshotCount mocks method

func (*ScheduleOptions) GetMaxStoreDownTime

func (mso *ScheduleOptions) GetMaxStoreDownTime() time.Duration

GetMaxStoreDownTime mocks method

func (*ScheduleOptions) GetMergeScheduleLimit

func (mso *ScheduleOptions) GetMergeScheduleLimit(name string) uint64

GetMergeScheduleLimit mocks method

func (*ScheduleOptions) GetRegionScheduleLimit

func (mso *ScheduleOptions) GetRegionScheduleLimit(name string) uint64

GetRegionScheduleLimit mocks method

func (*ScheduleOptions) GetReplicaScheduleLimit

func (mso *ScheduleOptions) GetReplicaScheduleLimit(name string) uint64

GetReplicaScheduleLimit mocks method

func (*ScheduleOptions) GetSchedulerMaxWaitingOperator

func (mso *ScheduleOptions) GetSchedulerMaxWaitingOperator() uint64

GetSchedulerMaxWaitingOperator mocks method.

func (*ScheduleOptions) GetSplitMergeInterval

func (mso *ScheduleOptions) GetSplitMergeInterval() time.Duration

GetSplitMergeInterval mocks method

func (*ScheduleOptions) GetStoreBalanceRate

func (mso *ScheduleOptions) GetStoreBalanceRate() float64

GetStoreBalanceRate mocks method

func (*ScheduleOptions) GetStrictlyMatchLabel

func (mso *ScheduleOptions) GetStrictlyMatchLabel() bool

GetStrictlyMatchLabel mocks method

func (*ScheduleOptions) GetTolerantSizeRatio

func (mso *ScheduleOptions) GetTolerantSizeRatio() float64

GetTolerantSizeRatio mocks method

func (*ScheduleOptions) IsLocationReplacementEnabled

func (mso *ScheduleOptions) IsLocationReplacementEnabled() bool

IsLocationReplacementEnabled mocks method.

func (*ScheduleOptions) IsMakeUpReplicaEnabled

func (mso *ScheduleOptions) IsMakeUpReplicaEnabled() bool

IsMakeUpReplicaEnabled mocks method.

func (*ScheduleOptions) IsNamespaceRelocationEnabled

func (mso *ScheduleOptions) IsNamespaceRelocationEnabled() bool

IsNamespaceRelocationEnabled mocks method.

func (*ScheduleOptions) IsRaftLearnerEnabled

func (mso *ScheduleOptions) IsRaftLearnerEnabled() bool

IsRaftLearnerEnabled mocks method

func (*ScheduleOptions) IsRemoveDownReplicaEnabled

func (mso *ScheduleOptions) IsRemoveDownReplicaEnabled() bool

IsRemoveDownReplicaEnabled mocks method.

func (*ScheduleOptions) IsRemoveExtraReplicaEnabled

func (mso *ScheduleOptions) IsRemoveExtraReplicaEnabled() bool

IsRemoveExtraReplicaEnabled mocks method.

func (*ScheduleOptions) IsReplaceOfflineReplicaEnabled

func (mso *ScheduleOptions) IsReplaceOfflineReplicaEnabled() bool

IsReplaceOfflineReplicaEnabled mocks method.

func (*ScheduleOptions) SetMaxReplicas

func (mso *ScheduleOptions) SetMaxReplicas(replicas int)

SetMaxReplicas mocks method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL