Class: God::Watch

Class | God::Watch
In: | lib/god/watch.rb
Parent: | Task

### Methods

action behavior call_action monitor new register! restart_if start_if unregister! valid?

### Constants

VALID_STATES | = | [:init, :up, :start, :restart]
INITIAL_STATE | = | :init

### Attributes

grace | [RW] | config
restart_grace | [RW] | config
start_grace | [RW] | config
stop_grace | [RW] | config

### Public Class methods

new()

### Public Instance methods

action(a, c = nil)

Actions

behavior(kind) {|b| ...}

Behavior

call_action(condition, action)
monitor()

Enable monitoring

register!()

Registration

restart_if() {|on| ...}
start_if() {|on| ...}

Simple mode

unregister!()
valid?()

[Validate]