class Babeltrace2::UserSink
Public Class Methods
new()
click to toggle source
# File lib/babeltrace2/plugin/plugin-dev.rb, line 289 def initialize consume_method = get_method(:consume, 1) raise "'consum' method must be defined" unless consume_method finalize_method = get_method(:finalize, 1) get_supported_mip_versions_method = get_method(:get_supported_mip_versions, 5) initialize_method = get_method(:init, 4) query_method = get_method(:query, 5) graph_is_configured_method = get_method(:graph_is_configured, 1) input_port_connected_method = get_method(:input_port_connected, 3) name = self.class.get_name description = self.class.description help = self.class.help @bt_component_class = BTComponentClassSink.new(name: name, consume_method: consume_method) @bt_component_class.description = description if description @bt_component_class.help = help if help @bt_component_class.finalize_method = finalize_method if finalize_method @bt_component_class.initialize_method = initialize_method if initialize_method @bt_component_class.get_supported_mip_versions_method = get_supported_mip_versions_method if get_supported_mip_versions_method @bt_component_class.query_method = query_method if query_method @bt_component_class.graph_is_configured_method = graph_is_configured_method if graph_is_configured_method @bt_component_class.input_port_connected_method = input_port_connected_method if input_port_connected_method end
type()
click to toggle source
# File lib/babeltrace2/plugin/plugin-dev.rb, line 285 def type :BT_COMPONENT_CLASS_TYPE_SINK end