Class: ThriftFlumeEventServer::AckedAppend_result
- Inherits:
-
Object
- Object
- ThriftFlumeEventServer::AckedAppend_result
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/fluent/plugin/thrift/thrift_flume_event_server.rb
Constant Summary collapse
- SUCCESS =
0
- FIELDS =
{ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => EventStatus} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
178 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 178 def struct_fields; FIELDS; end |
#validate ⇒ Object
180 181 182 183 184 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 180 def validate unless @success.nil? || EventStatus::VALID_VALUES.include?(@success) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!') end end |