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

Convert BackupReceiver to component

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          People

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: