CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
service.Service Class Reference
Inheritance diagram for service.Service:

Public Member Functions

def __init__
 
def start
 
def stop
 

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 
8  def __init__(self, cfg, comp, outdir):
9  '''
10  cfg: framework.config.Service object containing whatever parameters
11  you need
12  comp: dummy parameter
13  outdir: output directory for your service (feel free not to use it)
14 
15  Please have a look at TFileService for more information
16  '''
def __init__
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 
18  def start(self):
19  '''Start the service.
20  Called by the looper, not by the user.
21  '''
22  pass
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 
24  def stop(self):
25  '''Stop the service.
26  Called by the looper, not by the user.
27  '''
28  pass