Class: Storm::TopologyInfo

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

Constant Summary collapse

ID =
1
NAME =
2
UPTIME_SECS =
3
EXECUTORS =
4
STATUS =
5
ERRORS =
6
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
  EXECUTORS => {:type => ::Thrift::Types::LIST, :name => 'executors', :element => {:type => ::Thrift::Types::STRUCT, :class => ExecutorSummary}},
  STATUS => {:type => ::Thrift::Types::STRING, :name => 'status'},
  ERRORS => {:type => ::Thrift::Types::MAP, :name => 'errors', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ErrorInfo}}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


708
709
710
711
712
713
714
715
# File 'lib/storm/thrift/storm_types.rb', line 708

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executors is unset!') unless @executors
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errors is unset!') unless @errors
end