Class: ThriftFlumeClientServer::Heartbeat_args
- Inherits:
-
Object
- Object
- ThriftFlumeClientServer::Heartbeat_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/thrift_flume_client_server.rb
Overview
HELPER FUNCTIONS AND STRUCTURES
Constant Summary collapse
- LOGICALNODE =
1
- PHYSICALNODE =
4
- HOST =
5
- S =
2
- TIMESTAMP =
3
- FIELDS =
{ LOGICALNODE => {:type => ::Thrift::Types::STRING, :name => 'logicalNode'}, PHYSICALNODE => {:type => ::Thrift::Types::STRING, :name => 'physicalNode'}, HOST => {:type => ::Thrift::Types::STRING, :name => 'host'}, S => {:type => ::Thrift::Types::I32, :name => 's', :enum_class => FlumeNodeState}, TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
191 |
# File 'lib/thrift/thrift_flume_client_server.rb', line 191 def struct_fields; FIELDS; end |
#validate ⇒ Object
193 194 195 196 197 |
# File 'lib/thrift/thrift_flume_client_server.rb', line 193 def validate unless @s.nil? || FlumeNodeState::VALID_VALUES.include?(@s) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field s!') end end |