Class: Storm::SpoutSpec

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


292
293
294
295
# File 'lib/storm/thrift/storm_types.rb', line 292

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