Examples of ReplicationEndpoint


Examples of org.apache.sling.replication.communication.ReplicationEndpoint

    public void testAuthenticationWithAuthenticableAndCorrectContext() throws Exception {
        UserCredentialsTransportAuthenticationProvider authenticationHandler = new UserCredentialsTransportAuthenticationProvider(
                "foo", "bar");
        Executor authenticable = Executor.newInstance();
        TransportAuthenticationContext context = new TransportAuthenticationContext();
        context.addAttribute("endpoint", new ReplicationEndpoint("http://www.apache.org"));
        authenticationHandler.authenticate(authenticable, context);
    }
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

      try
      {
         Channel channel = connection.getChannel(request.getSessionChannelID(), -1);

         ReplicationEndpoint endpoint = server.connectToReplicationEndpoint(channel);

         channel.setHandler(endpoint);

         response = new NullResponseMessage();
      }
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               assert replicationEndpoint == null;
               nodeManager.stop();
               nodeManager =
                        createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

      try
      {
         Channel channel = connection.getChannel(request.getSessionChannelID(), -1);

         ReplicationEndpoint endpoint = server.connectToReplicationEndpoint(channel);

         channel.setHandler(endpoint);

         response = new NullResponseMessage();
      }
View Full Code Here

Examples of org.hornetq.core.replication.ReplicationEndpoint

               nodeManager.stop();
               nodeManager =
                  createNodeManager(configuration.getJournalDirectory(), configuration.getBackupGroupName(), true);
               backupUpToDate = false;
               backupSyncLatch.setCount(1);
               replicationEndpoint = new ReplicationEndpoint(this, shutdownOnCriticalIO, wasLive);
               activation = new SharedNothingBackupActivation(wasLive);
            }

            backupActivationThread = new Thread(activation, HornetQMessageBundle.BUNDLE.activationForServer(this));
            backupActivationThread.start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.