Class: Storm::Bolt

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


312
313
314
315
# File 'lib/storm/thrift/storm_types.rb', line 312

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