58 |
|
############################################################################## |
59 |
|
|
60 |
|
class DLSInfo: |
61 |
< |
def __init__(self, type): |
61 |
> |
def __init__(self, type, jobtype): |
62 |
|
if type=="DLS_TYPE_DLI": |
63 |
< |
endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFCProto" |
63 |
> |
if jobtype.count('orca')>0: |
64 |
> |
endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFCProto" |
65 |
> |
else: |
66 |
> |
endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFC" |
67 |
|
try: |
68 |
|
import xml.dom.ext.reader |
69 |
|
except: |
83 |
|
msg = "DLS type %s not among the supported DLS ( DLS_TYPE_DLI and DLS_TYPE_MYSQL ) "%type |
84 |
|
raise CrabException(msg) |
85 |
|
|
86 |
+ |
common.logger.debug(5,"DLS interface: %s Server %s"%(type,endpoint)) |
87 |
|
try: |
88 |
|
self.api = dlsClient.getDlsApi(dls_type=type,dls_endpoint=endpoint) |
89 |
|
except dlsApi.DlsApiError, inst: |