File indexing completed on 2024-04-06 12:23:29
0001 class Service(object):
0002 '''Basic service interface.
0003 If you want your own service, you should respect this interface
0004 so that your service can be used by the looper.
0005 '''
0006
0007 def __init__(self, cfg, comp, outdir):
0008 '''
0009 cfg: framework.config.Service object containing whatever parameters
0010 you need
0011 comp: dummy parameter
0012 outdir: output directory for your service (feel free not to use it)
0013
0014 Please have a look at TFileService for more information
0015 '''
0016
0017 def start(self):
0018 '''Start the service.
0019 Called by the looper, not by the user.
0020 '''
0021 pass
0022
0023 def stop(self):
0024 '''Stop the service.
0025 Called by the looper, not by the user.
0026 '''
0027 pass