Class: Storm::ExecutorInfo

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

Constant Summary collapse

TASK_START =
1
TASK_END =
2
FIELDS =
{
  TASK_START => {:type => ::Thrift::Types::I32, :name => 'task_start'},
  TASK_END => {:type => ::Thrift::Types::I32, :name => 'task_end'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


649
650
651
652
# File 'lib/storm/thrift/storm_types.rb', line 649

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