Package org.infinispan.xsite

Examples of org.infinispan.xsite.BackupReceiverDelegator


         this.listener = listener;
      }

      @Override
      public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
         return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
            @Override
            public Object handleRemoteCommand(VisitableCommand command) throws Throwable {
               listener.beforeCommand(command);
               try {
                  return super.handleRemoteCommand(command);
View Full Code Here


         this.listener = listener;
      }

      @Override
      public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
         return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
            @Override
            public Object handleRemoteCommand(VisitableCommand command) throws Throwable {
               listener.beforeCommand(command);
               try {
                  return super.handleRemoteCommand(command);
View Full Code Here

                                   private final Set<Address> addressSet = new HashSet<>();

                                   @Override
                                   public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
                                      return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
                                         @Override
                                         public void handleStateTransferState(XSiteStatePushCommand cmd) throws Exception {
                                            log.debugf("Applying state: %s", cmd);
                                            if (!discard.get()) {
                                               delegate.handleStateTransferState(cmd);
View Full Code Here

                             @Override
                             public BackupReceiverRepository wrap(final CacheContainer wrapOn, final BackupReceiverRepository current) {
                                BackupReceiverRepositoryDelegator delegator = new BackupReceiverRepositoryDelegator(current) {
                                   @Override
                                   public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
                                      return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
                                         @Override
                                         public void handleStateTransferState(XSiteStatePushCommand cmd) throws Exception {
                                            checkPoint.trigger("before-chunk");
                                            delegate.handleStateTransferState(cmd);
                                         }
View Full Code Here

         this.listener = listener;
      }

      @Override
      public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
         return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
            @Override
            public Object handleRemoteCommand(VisitableCommand command) throws Throwable {
               listener.beforeCommand(command);
               try {
                  return super.handleRemoteCommand(command);
View Full Code Here

TOP

Related Classes of org.infinispan.xsite.BackupReceiverDelegator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.