CMS 3D CMS Logo

List of all members | Public Member Functions
service.Service Class Reference
Inheritance diagram for service.Service:

Public Member Functions

def __init__ (self, cfg, comp, outdir)
 
def start (self)
 
def stop (self)
 

Detailed Description

Basic service interface.
If you want your own service, you should respect this interface
so that your service can be used by the looper. 

Definition at line 1 of file service.py.

Constructor & Destructor Documentation

◆ __init__()

def service.Service.__init__ (   self,
  cfg,
  comp,
  outdir 
)
cfg: framework.config.Service object containing whatever parameters
you need
comp: dummy parameter
outdir: output directory for your service (feel free not to use it)

Please have a look at TFileService for more information

Definition at line 7 of file service.py.

7  def __init__(self, cfg, comp, outdir):
8  '''
9  cfg: framework.config.Service object containing whatever parameters
10  you need
11  comp: dummy parameter
12  outdir: output directory for your service (feel free not to use it)
13 
14  Please have a look at TFileService for more information
15  '''
16 

Member Function Documentation

◆ start()

def service.Service.start (   self)
Start the service.
Called by the looper, not by the user.

Definition at line 17 of file service.py.

17  def start(self):
18  '''Start the service.
19  Called by the looper, not by the user.
20  '''
21  pass
22 

Referenced by progressbar.ProgressBar.__next__().

◆ stop()

def service.Service.stop (   self)
Stop the service.
Called by the looper, not by the user.

Definition at line 23 of file service.py.

23  def stop(self):
24  '''Stop the service.
25  Called by the looper, not by the user.
26  '''
27  pass
command_line.start
start
Definition: command_line.py:167