Class: Storm::SupervisorSummary

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

Constant Summary collapse

HOST =
1
UPTIME_SECS =
2
NUM_WORKERS =
3
NUM_USED_WORKERS =
4
FIELDS =
{
  HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
  UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
  NUM_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_workers'},
  NUM_USED_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_used_workers'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


486
487
488
489
490
491
# File 'lib/storm/thrift/storm_types.rb', line 486

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field host is unset!') unless @host
  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 num_workers is unset!') unless @num_workers
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_used_workers is unset!') unless @num_used_workers
end