Example #1
0
    def __init__(self, executable, cmd_format=None, find_dirs=None,
        environment=None):
        self.cmd_format  = cmd_format or Function.CMD_FORMAT
        self.path        = find_executable(executable, find_dirs)
        self.environment = environment or dict()
        self.includes    = set([self.path])

        debug(D_FUNCTION, 'Created Function {0}({1}, {2})'.format(
            type_str(self), self.path, self.cmd_format))
Example #2
0
    def __init__(self,
                 executable,
                 cmd_format=None,
                 find_dirs=None,
                 environment=None):
        self.cmd_format = cmd_format or Function.CMD_FORMAT
        self.path = find_executable(executable, find_dirs)
        self.environment = environment or dict()
        self.includes = set([self.path])

        debug(
            D_FUNCTION,
            'Created Function {0}({1}, {2})'.format(type_str(self), self.path,
                                                    self.cmd_format))
Example #3
0
 def __str__(self):
     return '{0}({1})'.format(type_str(self), self.cache_path)
Example #4
0
 def __str__(self):
     return '{0}[{1}]({2},{3})'.format(
         type_str(self), self.id, self.function, self.cache_path)
Example #5
0
 def __str__(self):
     return '{0}({1},{2},{3})'.format(type_str(self), self.db_host, self.db_name, self.db_table)
Example #6
0
 def __str__(self):
     return '{0}[{1}]({2},{3},{4})'.format(
         type_str(self), self.id, self.mapper, self.reducer, self.cache_path)
Example #7
0
 def __str__(self):
     return '{0}[{1}]({2},{3})'.format(type_str(self), self.id,
                                       self.function, self.cache_path)
Example #8
0
 def __str__(self):
     return '{0}[{1}]({2},{3},{4})'.format(type_str(self), self.id,
                                           self.mapper, self.reducer,
                                           self.cache_path)
Example #9
0
 def __str__(self):
     return '{0}({1})'.format(type_str(self), self.cache_path)
Example #10
0
 def __str__(self):
     return '{0}({1},{2},{3})'.format(type_str(self), self.db_host,
                                      self.db_name, self.db_table)