execution

package
v0.0.0-...-c8f6fff Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	ExecuteCommands(map[string]commands.Commander, conf.MonitorDir)
}

type CommandManager

type CommandManager interface {
	ExecuteCommandsForMonitors()
}

func NewDefaultCommandManager

func NewDefaultCommandManager() CommandManager

type CommandProducer

type CommandProducer interface {
	CreateCommandList(monitorDir *conf.MonitorDir) map[string]commands.Commander
}

type ConfigCommandProducer

type ConfigCommandProducer struct{}

func (*ConfigCommandProducer) CreateCommandList

func (self *ConfigCommandProducer) CreateCommandList(monitorDir *conf.MonitorDir) map[string]commands.Commander

builds a command list based on the monitor dirs in the yaml config

type DefaultCommandManager

type DefaultCommandManager struct {
	Producer CommandProducer
	Executor CommandExecutor
}

func (DefaultCommandManager) ExecuteCommandsForMonitors

func (self DefaultCommandManager) ExecuteCommandsForMonitors()

type SequentialCommandExecutor

type SequentialCommandExecutor struct{}

func (*SequentialCommandExecutor) ExecuteCommands

func (self *SequentialCommandExecutor) ExecuteCommands(commandList map[string]commands.Commander, monitorDir conf.MonitorDir)

Jump to

Keyboard shortcuts

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