Exemple #1
0
 def __init__(self, *ignored_args, **ignored_kwargs):
     self.logger = logging.getLogger(self.get_name())
     self.server = None
     self.broker_client = None
     self.pubsub = None
     self.channel = None
     self.cid = None
     self.in_reply_to = None
     self.outgoing = None
     self.cloud = None
     self.worker_store = None
     self.odb = None
     self.data_format = None
     self.transport = None
     self.wsgi_environ = None
     self.job_type = None
     self.environ = Bunch()
     self.request = Request(self.logger)
     self.response = Response(self.logger)
     self.invocation_time = None # When was the service invoked
     self.handle_return_time = None # When did its 'handle' method finished processing the request
     self.processing_time_raw = None # A timedelta object with the processing time up to microseconds
     self.processing_time = None # Processing time in milliseconds
     self.usage = 0 # How many times the service has been invoked
     self.slow_threshold = maxint # After how many ms to consider the response came too late
     self.name = self.__class__.get_name()
     self.impl_name = self.__class__.get_impl_name()
     self.time = None
     self.patterns = None
     self.user_config = None
     self.dictnav = DictNav
     self.listnav = ListNav
     self.has_validate_input = False
     self.has_validate_output = False
Exemple #2
0
 def __init__(self, *ignored_args, **ignored_kwargs):
     self.logger = logging.getLogger(self.get_name())
     self.server = None
     self.broker_client = None
     self.channel = None
     self.cid = None
     self.outgoing = None
     self.worker_store = None
     self.odb = None
     self.data_format = None
     self.transport = None
     self.wsgi_environ = None
     self.job_type = None
     self.delivery_store = None
     self.environ = {}
     self.request = Request(self.logger)
     self.response = Response(self.logger)
     self.invocation_time = None # When was the service invoked
     self.handle_return_time = None # When did its 'handle' method finished processing the request
     self.processing_time_raw = None # A timedelta object with the processing time up to microseconds
     self.processing_time = None # Processing time in milliseconds
     self.usage = 0 # How many times the service has been invoked
     self.slow_threshold = maxint # After how many ms to consider the response came too late
     self.name = self.__class__.get_name()
     self.impl_name = self.__class__.get_impl_name()
     self.time = TimeUtil(None)
     self.from_passthrough = False
     self.passthrough_request = None