Class: Wakame::Actor::ServiceMonitor
- Inherits:
-
Object
- Object
- Wakame::Actor::ServiceMonitor
- Includes:
- Wakame::Actor
- Defined in:
- lib/wakame/actor/service_monitor.rb
Constant Summary
Constants included from Wakame::Actor
STATUS_CANCELED, STATUS_FAILED, STATUS_RUNNING, STATUS_SUCCESS
Instance Method Summary collapse
-
#check_status(svc_id) ⇒ Object
Immediate status check for the specified Service ID.
Methods included from Wakame::Actor
Instance Method Details
#check_status(svc_id) ⇒ Object
Immediate status check for the specified Service ID.
6 7 8 9 10 11 12 |
# File 'lib/wakame/actor/service_monitor.rb', line 6 def check_status(svc_id) self.return_value = EM. { svcmon = agent.monitor_registry.find_monitor('/service') svcmon.check_status(svc_id) } self.return_value end |