HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
PostProcessingModuleClass.py
Go to the documentation of this file.
1 # coding: utf-8
2 
3 """
4 HCE project, Python bindings, Distributed Tasks Manager application.
5 PostProcessingModuleClass is a base class for postprocess modules.
6 
7 @package: dc_postprocessor
8 @file PostProcessingModuleClass.py
9 @author Alexander Vybornyh <alexander.hce.cluster@gmail.com>
10 @link: http://hierarchical-cluster-engine.com/
11 @copyright: Copyright &copy; 2013-2017 IOIX Ukraine
12 @license: http://hierarchical-cluster-engine.com/license/
13 @since: 0.1
14 """
15 
16 # This object is a run at once module processing
18 
19  # Default initialization
20  def __init__(self, getConfigOption=None, log=None):
21  self.getConfigOption = getConfigOption
22  self.logger = log
23 
24  # # initialization interface method
25  #
26  # @param - None
27  # @return - None
28  def init(self):
29  pass
30 
31 
32  # # process batch interface method
33  #
34  # @param batchObj - batch instance
35  # @return - None
36  def processBatch(self, batchObj):
37  return batchObj
38 
39 
40  # # process batch item interface method
41  #
42  # @param batchItemObj - batch item instance
43  # @return - None
44  def processBatchItem(self, batchItemObj):
45  return batchItemObj
def processBatch(self, batchObj)
def processBatchItem(self, batchItemObj)
def __init__(self, getConfigOption=None, log=None)
logger
def init(self)
getConfigOption