6 |
|
""" |
7 |
|
def __init__(self, address='http://lxgate35.cern.ch:40808/ApMonConf'): |
8 |
|
self._params = {} |
9 |
+ |
self.fName = 'mlCommonInfo' |
10 |
|
self._MLaddress = address |
11 |
|
self.apm = None |
12 |
|
self.apm = self.getApmonInstance() |
22 |
|
|
23 |
|
def getApmonInstance(self): |
24 |
|
if self.apm is None : |
25 |
< |
apmonUrl = 'http://lxgate35.cern.ch:40808/ApMonConf' |
26 |
< |
print "Creating ApMon with " + apmonUrl |
27 |
< |
apmonInstance = apmon.ApMon(apmonUrl) |
25 |
> |
try: |
26 |
> |
apmonUrl = 'http://lxgate35.cern.ch:40808/ApMonConf' |
27 |
> |
print "Creating ApMon with " + apmonUrl |
28 |
> |
apmonInstance = apmon.ApMon(apmonUrl, apmon.Logger.WARNING) |
29 |
> |
except: |
30 |
> |
print "PIPPO" |
31 |
|
return apmonInstance |
32 |
|
|
33 |
|
def free(self): |