Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JobMap = map[string]Job{}
Functions ¶
func RegisterJob ¶
func RegisterJob(job Job)
Types ¶
type JobCephStatus ¶
type JobCephStatus struct {
JobCephStatusCaller
}
func NewJobCephStatus ¶
func NewJobCephStatus(caller JobCephStatusCaller) JobCephStatus
func (*JobCephStatus) Exec ¶
func (job *JobCephStatus) Exec() error
func (*JobCephStatus) JobName ¶
func (job *JobCephStatus) JobName() string
type JobCephStatusCaller ¶
type JobCephStatusCaller interface { interfacer.Worker RunTime() int64 HandleCephStatusList(list ceph_cluster.CephStatusList) }
type JobJobCost ¶
type JobJobCost struct { RunTime int64 `json:"runtime"` OsdIDs []int64 `json:"osdIDs"` interfacer.Worker }
func (*JobJobCost) Exec ¶
func (job *JobJobCost) Exec() (interface{}, error)
func (*JobJobCost) JobName ¶
func (job *JobJobCost) JobName() string
type JobManager ¶
type JobManager struct { *ceph_cluster.CephCluster *ceph.CephConf PipeLine PipeLine `json:"pipeLine"` }
func NewJobManager ¶
func NewJobManager(configPath string) (*JobManager, error)
func (*JobManager) ReadConfig ¶
func (execConfig *JobManager) ReadConfig(configFilePath string) error
func (*JobManager) Run ¶
func (execConfig *JobManager) Run() (interface{}, error)
type PipeLine ¶
type PipeLine struct { Job // 并行job ParallelJobs []PipeLine `json:"parallelJobs"` // 串行job SerialJobs []PipeLine `json:"serialJobs"` }
func NewJobFioPipeLine ¶
func NewJobFioPipeLine(worker interfacer.Worker, fio fio.Fio) *PipeLine
func NewJobJobCostPipeLine ¶
func NewJobJobCostPipeLine(worker interfacer.Worker, runtime int64) *PipeLine
func (*PipeLine) RunParallelJobs ¶
func (*PipeLine) RunSerialJobs ¶
Click to show internal directories.
Click to hide internal directories.