Module: Wakame::Monitor

Included in:
Agent, Service
Defined in:
lib/wakame/monitor.rb,
lib/wakame/monitor.rb

Defined Under Namespace

Classes: Agent, CheckerTimer, Service

Constant Summary collapse

STATUS_OFFLINE =
0
STATUS_ONLINE =
1
STATUS_FAIL =
2

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



10
11
12
13
14
15
# File 'lib/wakame/monitor.rb', line 10

def self.included(klass)
  klass.class_eval {
    attr_accessor :status, :agent

  }
end

Instance Method Details

#disableObject



20
21
# File 'lib/wakame/monitor.rb', line 20

def disable
end

#enableObject



17
18
# File 'lib/wakame/monitor.rb', line 17

def enable
end

#publish_to(exchange, data) ⇒ Object



26
27
28
# File 'lib/wakame/monitor.rb', line 26

def publish_to(exchange, data)
  agent.publish_to(exchange, data)
end

#reload(config) ⇒ Object



23
24
# File 'lib/wakame/monitor.rb', line 23

def reload(config)
end