Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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)
Exemplo n.º 6
0
    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)
Exemplo n.º 7
0
    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)
Exemplo n.º 8
0
    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)
Exemplo n.º 9
0
    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)
Exemplo n.º 10
0
    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
Exemplo n.º 11
0
    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
Exemplo n.º 12
0
 def get_instance(module, config):
     return get_instance(AppManager, module, config)
Exemplo n.º 13
0
 def get_instance(module, config):
     return get_instance(UpdateBoard, module, config)
Exemplo n.º 14
0
 def get_instance(module, dynamo_server, config):
     return get_instance(AppServer, module, dynamo_server, config)
Exemplo n.º 15
0
 def get_instance(module, dynamo_server, config):
     return get_instance(AppServer, module, dynamo_server, config)
Exemplo n.º 16
0
 def get_instance(module, config):
     return get_instance(FileTransferOperation, module, config)
Exemplo n.º 17
0
 def get_instance(module, config):
     return get_instance(Authorizer, module, config)
Exemplo n.º 18
0
 def get_instance(module, config):
     return get_instance(UpdateBoard, module, config)
Exemplo n.º 19
0
 def get_instance(module, config):
     return get_instance(FileTransferOperation, module, config)
Exemplo n.º 20
0
 def get_instance(module, config):
     return get_instance(FileTransferQuery, module, config)
Exemplo n.º 21
0
 def get_instance(module, config):
     return get_instance(Authorizer, module, config)
Exemplo n.º 22
0
 def get_instance(module, config):
     return get_instance(AppManager, module, config)
Exemplo n.º 23
0
 def get_instance(module, config):
     return get_instance(InventoryStore, module, config)
Exemplo n.º 24
0
 def get_instance(module, config):
     return get_instance(FileDeletionOperation, module, config)
Exemplo n.º 25
0
 def get_instance(module, config):
     return get_instance(FileTransferQuery, module, config)
Exemplo n.º 26
0
 def get_instance(module, config):
     return get_instance(InventoryStore, module, config)
Exemplo n.º 27
0
 def get_instance(module, config):
     return get_instance(FileDeletionQuery, module, config)