Class: RedStorm::SimpleTopology::SpoutDefinition

Inherits:
ComponentDefinition show all
Defined in:
lib/red_storm/simple_topology.rb

Instance Attribute Summary

Attributes inherited from ComponentDefinition

#clazz, #id, #parallelism

Attributes inherited from Configurator

#config

Instance Method Summary collapse

Methods inherited from ComponentDefinition

#initialize, #is_java?

Methods inherited from Configurator

#initialize, #method_missing, #set

Constructor Details

This class inherits a constructor from RedStorm::SimpleTopology::ComponentDefinition

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RedStorm::Configurator

Instance Method Details

#new_instance(base_class_path) ⇒ Object



32
33
34
# File 'lib/red_storm/simple_topology.rb', line 32

def new_instance(base_class_path)
  is_java? ? @clazz.new : JRubySpout.new(base_class_path, @clazz.name)
end