Class BackupReceiverRepositoryImpl

    • Constructor Detail

      • BackupReceiverRepositoryImpl

        public BackupReceiverRepositoryImpl()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • getBackupReceiver

        public BackupReceiver getBackupReceiver​(String remoteSite,
                                                String remoteCache)
        Returns the local cache defined as backup for the provided remote (site, cache) combo, or throws an exception if no such site is defined.

        Also starts the cache if not already started; that is because the cache is needed for update after this method is invoked.

        Specified by:
        getBackupReceiver in interface BackupReceiverRepository