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



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

def disable
end

#enableObject



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

def enable
end

#handle_request(request) ⇒ Object



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

def handle_request(request)
end

#publish_to(exchange, data) ⇒ Object



29
30
31
# File 'lib/wakame/monitor.rb', line 29

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

#setup(assigned_path) ⇒ Object



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

def setup(assigned_path)
end