Class: Trema::StatsReply
- Inherits:
-
Object
- Object
- Trema::StatsReply
- Defined in:
- ruby/trema/stats-reply.c
Constant Summary collapse
- OFPST_DESC =
INT2NUM( OFPST_DESC )
- OFPST_FLOW =
INT2NUM( OFPST_FLOW )
- OFPST_AGGREGATE =
INT2NUM( OFPST_AGGREGATE )
- OFPST_TABLE =
INT2NUM( OFPST_TABLE )
- OFPST_PORT =
INT2NUM( OFPST_PORT )
- OFPST_QUEUE =
INT2NUM( OFPST_QUEUE )
- OFPST_VENDOR =
INT2NUM( OFPST_VENDOR )
Instance Method Summary collapse
-
#datapath_id ⇒ Number
Message originator identifier.
-
#flags ⇒ Number
Flag that indicates if more reply message(s) expected to follow.
-
#initialize(options = {}) ⇒ StatsReply
constructor
A StatsReply instance that encapsulates the header part of the
OFPT_STATS_REPLYmessage. -
#stats ⇒ Array<DescStatsReply>, ...
A list of reply type objects for this message.
-
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
-
#type ⇒ Number
The type of this reply.
Constructor Details
#initialize(options = {}) ⇒ StatsReply
A Trema::StatsReply instance that encapsulates the header part of the OFPT_STATS_REPLY message. The body of the reply message may be an array of one or more specific reply objects designated by the type. The user would not instantiate stats. reply objects explicitly, the stats. reply handler would normally do that while parsing the message.
67 68 69 70 71 |
# File 'ruby/trema/stats-reply.c', line 67
static VALUE
stats_reply_init( VALUE self, VALUE options ) {
rb_iv_set( self, "@attribute", options );
return self;
}
|
Instance Method Details
#datapath_id ⇒ Number
Message originator identifier.
79 80 81 82 |
# File 'ruby/trema/stats-reply.c', line 79 static VALUE stats_reply_datapath_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "datapath_id" ) ) ); } |
#flags ⇒ Number
Flag that indicates if more reply message(s) expected to follow.
112 113 114 115 |
# File 'ruby/trema/stats-reply.c', line 112 static VALUE stats_reply_flags( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "flags" ) ) ); } |
#stats ⇒ Array<DescStatsReply>, ...
A list of reply type objects for this message.
136 137 138 139 |
# File 'ruby/trema/stats-reply.c', line 136 static VALUE stats_reply_stats( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "stats" ) ) ); } |
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
90 91 92 93 |
# File 'ruby/trema/stats-reply.c', line 90 static VALUE stats_reply_transaction_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "transaction_id" ) ) ); } |
#type ⇒ Number
The type of this reply.
101 102 103 104 |
# File 'ruby/trema/stats-reply.c', line 101 static VALUE stats_reply_type( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "type" ) ) ); } |