Class: OpenFlow::Protocol::Statistics
- Inherits:
-
Message
show all
- Defined in:
- lib/openflow-protocol/messages/statistics.rb
Constant Summary
collapse
- STATISTICS_TYPES =
[
:description,
:flow,
:aggregate,
:table,
:port,
:queue
]
Constants inherited
from Message
Message::HEADER_LENGTH, Message::OFP_VERSION, Message::TYPES
Instance Attribute Summary
#type_str
Instance Method Summary
collapse
#initialize_instance
Instance Method Details
#body_length ⇒ Object
23
24
25
|
# File 'lib/openflow-protocol/messages/statistics.rb', line 23
def body_length
4 + statistics.to_binary_s.length
end
|
#flags_list ⇒ Object
16
17
18
|
# File 'lib/openflow-protocol/messages/statistics.rb', line 16
def flags_list
self.class.const_get(:FLAGS)
end
|