Class: NotifierPlugin::WakeUpTaskHandlerType

Inherits:
BaseTaskHandlerType show all
Defined in:
lib/tecsgen/plugin/NotifierPlugin.rb

Instance Attribute Summary

Attributes inherited from BaseHandlerType

#required_attributes

Instance Method Summary collapse

Methods inherited from BaseTaskHandlerType

#gen_cfg_handler_parameters, #might_fail

Methods inherited from BaseHandlerType

#gen_cfg_handler_parameters, #generate_attr_map, #initialize, #might_fail

Constructor Details

This class inherits a constructor from NotifierPlugin::BaseHandlerType

Instance Method Details

#gen_cfg_handler_type(handler) ⇒ Object



595
596
597
598
599
600
601
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 595

def gen_cfg_handler_type(handler)
  case handler
    when EVENT_HANDLER then return "TNFY_WUPTSK"
    when ERROR_HANDLER then return "TENFY_WUPTSK"
    else raise "unknown handler #{handler}"
  end
end

#validate_join(handler, cell, join, *args) ⇒ Object



590
591
592
593
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 590

def validate_join(handler, cell, join, *args)
  return super(handler, cell, join, *args) &&
    join.get_port_name == :eiWakeUpNotificationHandler
end