Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11800

Convert BackupReceiver to component

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The BackupReceiver instance is created by BackupReceiverRepository and it needs access to the Cache instance for its dependencies.

      However, with the latest changes in Cross-Site Replication, it needs to be accessed by commands and the only way to do it is by doing:

      BackupReceiver backupReceiver = registry.getGlobalComponentRegistry()
                  .getComponent(BackupReceiverRepository.class)
                  .getBackupReceiver(cache);
      

      Bottom line: tt should be converted to a component.

      Another alternative would be to merge it with PerCacheInboundInvocationHandler... but it doesn't sound too good since it will increase the complexity and size of PerCacheInboundInvocationHandler

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: