Class: Storm::StateSpoutSpec

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/storm/thrift/storm_types.rb

Constant Summary collapse

STATE_SPOUT_OBJECT =
1
COMMON =
2
FIELDS =
{
  STATE_SPOUT_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'state_spout_object', :class => ComponentObject},
  COMMON => {:type => ::Thrift::Types::STRUCT, :name => 'common', :class => ComponentCommon}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



330
# File 'lib/storm/thrift/storm_types.rb', line 330

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


332
333
334
335
# File 'lib/storm/thrift/storm_types.rb', line 332

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state_spout_object is unset!') unless @state_spout_object
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field common is unset!') unless @common
end