Class: Pio::OpenFlow10::Stats::Request
- Inherits:
-
Pio::OpenFlow::Message
- Object
- Pio::OpenFlow::Message
- Pio::OpenFlow10::Stats::Request
- Defined in:
- lib/pio/open_flow10/stats_request.rb
Overview
Stats request parser.
Constant Summary collapse
- TYPE =
{ aggregate: OpenFlow10::AggregateStats::Request, description: OpenFlow10::DescriptionStats::Request, flow: OpenFlow10::FlowStats::Request, port: OpenFlow10::PortStats::Request, queue: OpenFlow10::QueueStats::Request, table: OpenFlow10::TableStats::Request }.freeze
Instance Attribute Summary
Attributes inherited from Pio::OpenFlow::Message
Class Method Summary collapse
Methods inherited from Pio::OpenFlow::Message
#initialize, method_missing, #method_missing, open_flow_header, #to_binary
Methods included from Pio::OpenFlow::Flags
#_define_flags, #_flags, #define_flags_32bit, #flags_16bit, #flags_32bit
Constructor Details
This class inherits a constructor from Pio::OpenFlow::Message
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pio::OpenFlow::Message
Class Method Details
.read(binary) ⇒ Object
27 28 29 30 31 |
# File 'lib/pio/open_flow10/stats_request.rb', line 27 def self.read(binary) TYPE.fetch(Format.read(binary).stats_type.to_sym).read(binary) rescue KeyError raise "Unknown stats type: #{stats_type}" end |