Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobFailureHandler ¶
type JobFailureHandler func(boshalert.MonitAlert) error
type JobSupervisor ¶
type JobSupervisor interface { Reload() error // Actions taken on all services Start() error Stop() error // Start and Stop should still function after Unmonitor. // Calling Start after Unmonitor should re-monitor all jobs. // Calling Stop after Unmonitor should not re-monitor all jobs. // (Monit complies to above requirements.) Unmonitor() error Status() string // Job management AddJob(jobName string, jobIndex int, configPath string) error RemoveAllJobs() error MonitorJobFailures(handler JobFailureHandler) error }
func NewDummyJobSupervisor ¶
func NewDummyJobSupervisor() JobSupervisor
func NewDummyNatsJobSupervisor ¶
func NewDummyNatsJobSupervisor(mbusHandler boshhandler.Handler) JobSupervisor
func NewMonitJobSupervisor ¶
func NewMonitJobSupervisor( fs boshsys.FileSystem, runner boshsys.CmdRunner, client boshmonit.Client, logger boshlog.Logger, dirProvider boshdir.Provider, jobFailuresServerPort int, reloadOptions MonitReloadOptions, timeService clock.Clock, ) JobSupervisor
type MonitReloadOptions ¶
type MonitReloadOptions struct { // Number of times `monit reload` will be executed MaxTries int // Number of times monit incarnation will be checked // for difference after executing `monit reload` MaxCheckTries int // Length of time between checking for incarnation difference DelayBetweenCheckTries time.Duration }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.