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

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 
def __init__(self, cfg, comp, outdir)
Definition: service.py:7

Member Function Documentation

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

Definition at line 17 of file service.py.

Referenced by progressbar.ProgressBar.__next__().

17  def start(self):
18  '''Start the service.
19  Called by the looper, not by the user.
20  '''
21  pass
22 
def start(self)
Definition: service.py:17
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
28 
def stop(self)
Definition: service.py:23