예제 #1
0
파일: chunker2.py 프로젝트: aaur0/SDDS
	def __init__(self):
		 '''     1. setup connection to cassandra   2. intialise logger object   '''
	         try:
			 self.db = dblayer()
			 self.metricsObj = metrics()			
		 except Exception,e:
			logging.error("chunker:__init__ failed with error %s", e)
			sys.exit(1)
예제 #2
0
파일: metrics.py 프로젝트: aaur0/SDDS
	def __init__(self):
		try:
			self.db = dblayer()
		except Exception, e:
			logging.error("metrics:___init__ failed with error %s", e)
			return None