Class: Storm::ExecutorSummary
- Inherits:
-
Object
- Object
- Storm::ExecutorSummary
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storm/thrift/storm_types.rb
Constant Summary collapse
- EXECUTOR_INFO =
1
- COMPONENT_ID =
2
- HOST =
3
- PORT =
4
- UPTIME_SECS =
5
- STATS =
7
- FIELDS =
{ EXECUTOR_INFO => {:type => ::Thrift::Types::STRUCT, :name => 'executor_info', :class => ExecutorInfo}, COMPONENT_ID => {:type => ::Thrift::Types::STRING, :name => 'component_id'}, HOST => {:type => ::Thrift::Types::STRING, :name => 'host'}, PORT => {:type => ::Thrift::Types::I32, :name => 'port'}, UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'}, STATS => {:type => ::Thrift::Types::STRUCT, :name => 'stats', :class => ExecutorStats, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
675 |
# File 'lib/storm/thrift/storm_types.rb', line 675 def struct_fields; FIELDS; end |
#validate ⇒ Object
677 678 679 680 681 682 683 |
# File 'lib/storm/thrift/storm_types.rb', line 677 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executor_info is unset!') unless @executor_info raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field component_id is unset!') unless @component_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field host is unset!') unless @host raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field port is unset!') unless @port raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs end |