Skip to content
Snippets Groups Projects
Commit 7bbc207a authored by Wainer Vandelli's avatar Wainer Vandelli
Browse files

Allow init parameters for backend module

parent c79e26c4
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,9 @@ Filenameparser: 'SFOFileNameParser'
# Module provide backend access functions
BackendModule: 'castorstorage'
# Backend specific parameters
BackendModuleConf: {}
#[Manager]
########## MANAGER THREAD ##########
......
......@@ -5,16 +5,10 @@ __version__='$Revision$'
from config import Config
from collections import namedtuple
class DrivenPool:
def __init__(self, list):
self.projecttag = list[0]
self.streamtype = list[1]
self.streamname = list[2]
self.pool = list[3]
self.targetdir = list[4]
self.stagehost = list[5]
DrivenPool = namedtuple('Point', ['projecttag','streamtype','streamname','pool','targetdir','stagehost'])
class Conf:
......@@ -84,6 +78,13 @@ class Conf:
except AttributeError:
self.backend = __import__('castorstorage', globals(), locals())
#Backend params
try:
self.backend.init(cfg.BackendModuleConf)
except AttributeError:
pass
########## MANAGER THREAD ##########
# Directory List where to get Data Files (list of strings)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment