Class: Storm::JavaObject

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

Constant Summary collapse

FULL_CLASS_NAME =
1
ARGS_LIST =
2
FIELDS =
{
  FULL_CLASS_NAME => {:type => ::Thrift::Types::STRING, :name => 'full_class_name'},
  ARGS_LIST => {:type => ::Thrift::Types::LIST, :name => 'args_list', :element => {:type => ::Thrift::Types::STRUCT, :class => JavaObjectArg}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


75
76
77
78
# File 'lib/storm/thrift/storm_types.rb', line 75

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