Esempio n. 1
0
   def __init__(self, direction, flowName, cmd, lockPath, logger=None):
      Igniter.__init__(self, cmd, lockPath) # Parent constructor
      self.direction = direction            # A string in ['sender', 'receiver']
      self.flowName = flowName              # Client or Source's name
      self.logger = logger                  # Logger object
      self.type = None                      # wmo, am, etc. (string)
      self.flow = None                      # Client or Source object
      self.gateway = None                   # Gateway object
      self.reloadMode = False               # Indicate if we are in reload mode or not

      eval("self." + cmd)()                 # Execute the command directly