Class: Siffer::Messages::SystemControl
- Defined in:
- lib/siffer/messages/system_control.rb
Overview
Message designed to control the flow of data between an agent and ZIS or vice-versa.
Class Method Summary collapse
-
.cancel_requests(source, notification, *ids) ⇒ Object
Returns a SIF_CancelRequest.
-
.get_agent_acl(source) ⇒ Object
Returns a SIF_GetAgentACL.
-
.get_message(source) ⇒ Object
Returns a SIF_GetMessage.
-
.get_zone_status(source) ⇒ Object
Returns a SIF_GetZoneStatus.
-
.ping(source) ⇒ Object
Returns a SIF_Ping.
-
.sleep(source) ⇒ Object
Returns a SIF_Sleep.
-
.wake_up(source) ⇒ Object
Returns a SIF_Wakeup.
Methods inherited from Message
Constructor Details
This class inherits a constructor from Siffer::Messages::Message
Class Method Details
.cancel_requests(source, notification, *ids) ⇒ Object
Returns a SIF_CancelRequest
84 85 86 87 88 89 |
# File 'lib/siffer/messages/system_control.rb', line 84 def cancel_requests(source, notification, *ids) cancel = CancelRequests.new( :notification_type => notification, :request_msg_ids => RequestMsgIds.new(:request_msg_id => ids)) SystemControl.new(:header => source, :system_control_data => cancel) end |
.get_agent_acl(source) ⇒ Object
Returns a SIF_GetAgentACL
79 80 81 |
# File 'lib/siffer/messages/system_control.rb', line 79 def get_agent_acl(source) SystemControl.new(:header => source, :system_control_data => GetAgentACL.new) end |
.get_message(source) ⇒ Object
Returns a SIF_GetMessage
69 70 71 |
# File 'lib/siffer/messages/system_control.rb', line 69 def (source) SystemControl.new(:header => source, :system_control_data => GetMessage.new) end |
.get_zone_status(source) ⇒ Object
Returns a SIF_GetZoneStatus
74 75 76 |
# File 'lib/siffer/messages/system_control.rb', line 74 def get_zone_status(source) SystemControl.new(:header => source, :system_control_data => GetZoneStatus.new) end |
.ping(source) ⇒ Object
Returns a SIF_Ping
54 55 56 |
# File 'lib/siffer/messages/system_control.rb', line 54 def ping(source) SystemControl.new(:header => source, :system_control_data => Ping.new) end |
.sleep(source) ⇒ Object
Returns a SIF_Sleep
59 60 61 |
# File 'lib/siffer/messages/system_control.rb', line 59 def sleep(source) SystemControl.new(:header => source, :system_control_data => Sleep.new) end |
.wake_up(source) ⇒ Object
Returns a SIF_Wakeup
64 65 66 |
# File 'lib/siffer/messages/system_control.rb', line 64 def wake_up(source) SystemControl.new(:header => source, :system_control_data => Wakeup.new) end |