Examples of ClusterManager


Examples of org.apache.karaf.cellar.core.ClusterManager

    @Ignore
    public void testClusterWithChildNodes() throws InterruptedException {
        installCellar();
        createCellarChild("child1");
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);

        Node localNode = clusterManager.getNode();
        Set<Node> nodes = clusterManager.listNodes();
        System.err.println(executeCommand("cluster:node-list"));
        assertTrue("There should be at least 2 cellar nodes running", 2 <= nodes.size());
    }
View Full Code Here

Examples of org.apache.karaf.cellar.core.ClusterManager

    public void testDosgiGreeter() throws InterruptedException {
        installCellar();
        createCellarChild("node1");
        createCellarChild("node2");
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);

        System.err.println(executeCommand("features:addurl mvn:org.apache.karaf.cellar.samples/dosgi-greeter/2.3.0-SNAPSHOT/xml/features"));

        System.err.println(executeCommand("admin:list"));

        System.err.println(executeCommand("cluster:node-list"));
        Node localNode = clusterManager.getNode();
        Set<Node> nodes = clusterManager.listNodes();
        assertTrue("There should be at least 3 cellar nodes running", 3 <= nodes.size());

        Thread.sleep(DEFAULT_TIMEOUT);

        String node1 = getNodeIdOfChild("node1");
View Full Code Here

Examples of org.apache.karaf.cellar.core.ClusterManager

    public void testCamelSampleApp() throws InterruptedException {
        installCellar();
        createCellarChild("node1");
        createCellarChild("node2");
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);

        System.err.println(executeCommand("features:addurl mvn:org.apache.karaf.cellar.samples/camel-hazelcast-app/2.3.0-SNAPSHOT/xml/features"));

        System.err.println(executeCommand("admin:list"));

        System.err.println(executeCommand("cluster:node-list"));
        Node localNode = clusterManager.getNode();
        Set<Node> nodes = clusterManager.listNodes();
        assertTrue("There should be at least 3 Cellar nodes running", nodes.size() >= 3);

        Thread.sleep(DEFAULT_TIMEOUT);

        String node1 = getNodeIdOfChild("node1");
View Full Code Here

Examples of org.apache.karaf.cellar.core.ClusterManager

    public void testCellarFeaturesModule() throws InterruptedException {
        installCellar();
        createCellarChild("child1");
        createCellarChild("child2");
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);

        String node1 = getNodeIdOfChild("child1");
        String node2 = getNodeIdOfChild("child2");
        System.err.println(executeCommand("admin:list"));
View Full Code Here

Examples of org.apache.karaf.cellar.core.ClusterManager

    @Test
    @Ignore
    public void testCellarEventFeatureInstall() throws Exception {
        installCellar();
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);
       
        System.err.println(executeCommand("features:install cellar-event"));
    }
View Full Code Here

Examples of org.apache.karaf.cellar.core.ClusterManager

    @Test
    @Ignore
    public void testCellarBundleModule() throws Exception {
        installCellar();
        Thread.sleep(DEFAULT_TIMEOUT);
        ClusterManager clusterManager = getOsgiService(ClusterManager.class);
        assertNotNull(clusterManager);
       
        System.err.println(executeCommand("cluster:bundle-list default"));
    }
View Full Code Here

Examples of org.hornetq.core.server.cluster.ClusterManager

         configuration.isPersistIDCache(),
         addressSettingsRepository);

      // This can't be created until node id is set
      clusterManager =
               new ClusterManager(executorFactory, this, postOffice, scheduledPool, managementService, configuration,
                                  nodeManager, configuration.isBackup(), threadPool);

      clusterManager.deploy();

      remotingService = new RemotingServiceImpl(clusterManager, configuration, this, managementService, scheduledPool);
View Full Code Here

Examples of org.hornetq.core.server.cluster.ClusterManager

         configuration.isPersistIDCache(),
         addressSettingsRepository);

      // This can't be created until node id is set
      clusterManager =
               new ClusterManager(executorFactory, this, postOffice, scheduledPool, managementService, configuration,
                                  nodeManager, configuration.isBackup(), threadPool);

      clusterManager.deploy();

      remotingService = new RemotingServiceImpl(clusterManager, configuration, this, managementService, scheduledPool);
View Full Code Here

Examples of org.mt4j.components.clusters.ClusterManager

    cacheClearTime = 20000;
    useHitTestCache = true;
   
    lastUpdateTime = 0;
   
    clusterManager = new ClusterManager(pApplet, this);
   
    positionToComponent = new HashMap<Position, IMTComponent3D>();
   
    //Schedule a Timer task to clear the object cache so it wont
    //get filled infinitely
View Full Code Here

Examples of org.nebulaframework.grid.cluster.manager.ClusterManager

  }
 
  private synchronized void initialize() {
    if (!initialized) {
      ClusterManager manager = ClusterManager.getInstance();
      this.jobService = manager.getJobService();     
      this.connectionFactory = ClusterManager.getInstance().getConnectionFactory();
      initialized = true;
    }
  }
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.