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))
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))
def __str__(self): return '{0}({1})'.format(type_str(self), self.cache_path)
def __str__(self): return '{0}[{1}]({2},{3})'.format( type_str(self), self.id, self.function, self.cache_path)
def __str__(self): return '{0}({1},{2},{3})'.format(type_str(self), self.db_host, self.db_name, self.db_table)
def __str__(self): return '{0}[{1}]({2},{3},{4})'.format( type_str(self), self.id, self.mapper, self.reducer, self.cache_path)
def __str__(self): return '{0}[{1}]({2},{3})'.format(type_str(self), self.id, self.function, self.cache_path)
def __str__(self): return '{0}[{1}]({2},{3},{4})'.format(type_str(self), self.id, self.mapper, self.reducer, self.cache_path)