Class: Storm::GlobalStreamId

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

Constant Summary collapse

COMPONENTID =
1
STREAMID =
2
FIELDS =
{
  COMPONENTID => {:type => ::Thrift::Types::STRING, :name => 'componentId'},
  STREAMID => {:type => ::Thrift::Types::STRING, :name => 'streamId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


110
111
112
113
# File 'lib/storm/thrift/storm_types.rb', line 110

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