def get_instance(module=None, config=None): if module is None: module = ReplicaInfoSource._module if config is None: config = ReplicaInfoSource._config return get_instance(ReplicaInfoSource, module, config)
def get_instance(module=None, config=None): if module is None: module = DatasetInfoSource._module if config is None: config = DatasetInfoSource._config return get_instance(DatasetInfoSource, module, config)
def get_instance(module = None, config = None): if module is None: module = ReplicaInfoSource._module if config is None: config = ReplicaInfoSource._config return get_instance(ReplicaInfoSource, module, config)
def get_instance(module = None, config = None): if module is None: module = DatasetInfoSource._module if config is None: config = DatasetInfoSource._config return get_instance(DatasetInfoSource, module, config)
def get_instance(module = None, config = None): if module is None: module = CopyInterface._module if config is None: config = CopyInterface._config return get_instance(CopyInterface, module, config)
def get_instance(module = None, config = None): if module is None: module = SiteInfoSource._module if config is None: config = SiteInfoSource._config return get_instance(SiteInfoSource, module, config)
def get_instance(module = None, config = None): if module is None: module = UserInfoSource._module if config is None: config = UserInfoSource._config return get_instance(UserInfoSource, module, config)
def get_instance(module=None, config=None): if module is None: module = CopyInterface._module if config is None: config = CopyInterface._config return get_instance(CopyInterface, module, config)
def get_instance(module=None, config=None): if module is None: module = DeletionInterface._module if config is None: config = DeletionInterface._config return get_instance(DeletionInterface, module, config)
def get_instance(module, config): instance = get_instance(MasterServer, module, config) # Decorate all public methods of MasterServer with the lock. Without this, the lock() method is meaningless. # Subclasses may have its own lock placed on the actual shared resource (e.g. database) by _do_lock, in which # case this class-level lock is redundant. for name in dir(instance): if name == 'lock' or name == 'unlock' or name.startswith('_'): continue mthd = getattr(instance, name) if callable(mthd) and not isinstance(mthd, types.FunctionType): # static methods are instances of FunctionType setattr(instance, name, instance._make_wrapper(mthd)) return instance
def get_instance(module, config): instance = get_instance(MasterServer, module, config) # Decorate all public methods of MasterServer with the lock. Without this, the lock() method is meaningless. # Subclasses may have its own lock placed on the actual shared resource (e.g. database) by _do_lock, in which # case this class-level lock is redundant. for name in dir(instance): if name == 'lock' or name == 'unlock' or name.startswith('_'): continue mthd = getattr(instance, name) if callable(mthd) and not isinstance( mthd, types.FunctionType ): # static methods are instances of FunctionType setattr(instance, name, instance._make_wrapper(mthd)) return instance
def get_instance(module, config): return get_instance(AppManager, module, config)
def get_instance(module, config): return get_instance(UpdateBoard, module, config)
def get_instance(module, dynamo_server, config): return get_instance(AppServer, module, dynamo_server, config)
def get_instance(module, dynamo_server, config): return get_instance(AppServer, module, dynamo_server, config)
def get_instance(module, config): return get_instance(FileTransferOperation, module, config)
def get_instance(module, config): return get_instance(Authorizer, module, config)
def get_instance(module, config): return get_instance(UpdateBoard, module, config)
def get_instance(module, config): return get_instance(FileTransferOperation, module, config)
def get_instance(module, config): return get_instance(FileTransferQuery, module, config)
def get_instance(module, config): return get_instance(Authorizer, module, config)
def get_instance(module, config): return get_instance(AppManager, module, config)
def get_instance(module, config): return get_instance(InventoryStore, module, config)
def get_instance(module, config): return get_instance(FileDeletionOperation, module, config)
def get_instance(module, config): return get_instance(FileTransferQuery, module, config)
def get_instance(module, config): return get_instance(InventoryStore, module, config)
def get_instance(module, config): return get_instance(FileDeletionQuery, module, config)