Class: Impala::Protocol::TServiceMembership
- Inherits:
-
Object
- Object
- Impala::Protocol::TServiceMembership
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/statestore_types_types.rb
Constant Summary collapse
- SERVICE_ID =
1
- SERVICE_INSTANCES =
2
- FIELDS =
{ SERVICE_ID => { :type => ::Thrift::Types::STRING, :name => 'service_id' }, SERVICE_INSTANCES => { :type => ::Thrift::Types::LIST, :name => 'service_instances', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TServiceInstance } } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
66 |
# File 'lib/impala/protocol/statestore_types_types.rb', line 66 def struct_fields; FIELDS; end |
#validate ⇒ Object
68 69 70 71 |
# File 'lib/impala/protocol/statestore_types_types.rb', line 68 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field service_id is unset!') unless @service_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field service_instances is unset!') unless @service_instances end |