Class: Storm::Bolt
- Inherits:
-
Object
- Object
- Storm::Bolt
- 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_fields ⇒ Object
310 |
# File 'lib/storm/thrift/storm_types.rb', line 310 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |