Example #1
0
    def __init__(self, globs=None, exclude_globs=None, wait_all=False, timeout=30, nthread=None,
                 conf_dir=DEFAULT_CONF_DIR):
        self.config = {}
        for f in ('swall', 'fs', 'redis'):
            abs_path = app_abs_path(os.path.join(conf_dir, "%s.conf" % f))
            self.config[f] = agent_config(abs_path)

        self.job = Job(self.config, env="aes")
        self.globs = globs if globs else ""
        self.exclude_globs = exclude_globs if exclude_globs else ""
        self.wait_all = wait_all
        self.timeout = timeout
        self.nthread = nthread
Example #2
0
    def __init__(self, globs=None, exclude_globs=None, role=None, wait_all=False, timeout=30, nthread=None,
                 conf_dir="/data/swall/conf"):
        self.config = {}
        for f in ('swall', 'zk', 'fs'):
            abs_path = app_abs_path(os.path.join(conf_dir, "%s.conf" % f))
            self.config[f] = agent_config(abs_path)

        self.job = Job(self.config, env="aes")
        self.globs = globs if globs else ""
        self.exclude_globs = exclude_globs if exclude_globs else ""
        self.role = role
        self.wait_all = wait_all
        self.timeout = timeout
        self.nthread = nthread
Example #3
0
 def setup_config(self):
     opts = {}
     for f in ('swall', 'zk', 'fs'):
         opts[f] = agent_config(self.get_config_file_path("%s.conf" % f))
     return opts
Example #4
0
 def setup_config(self):
     opts = {}
     for f in ('swall', 'fs', 'redis'):
         opts[f] = agent_config(self.get_config_file_path("%s.conf" % f))
     return opts