Class: Storm::ClusterSummary
- Inherits:
-
Object
- Object
- Storm::ClusterSummary
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storm/thrift/storm_types.rb
Constant Summary collapse
- SUPERVISORS =
1
- NIMBUS_UPTIME_SECS =
2
- TOPOLOGIES =
3
- FIELDS =
{ SUPERVISORS => {:type => ::Thrift::Types::LIST, :name => 'supervisors', :element => {:type => ::Thrift::Types::STRUCT, :class => SupervisorSummary}}, NIMBUS_UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'nimbus_uptime_secs'}, TOPOLOGIES => {:type => ::Thrift::Types::LIST, :name => 'topologies', :element => {:type => ::Thrift::Types::STRUCT, :class => TopologySummary}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
508 |
# File 'lib/storm/thrift/storm_types.rb', line 508 def struct_fields; FIELDS; end |
#validate ⇒ Object
510 511 512 513 514 |
# File 'lib/storm/thrift/storm_types.rb', line 510 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supervisors is unset!') unless @supervisors raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nimbus_uptime_secs is unset!') unless @nimbus_uptime_secs raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field topologies is unset!') unless @topologies end |