Examples of NodeManager


Examples of org.hornetq.core.server.NodeManager

      performWork(live1, backup1, backup2);
   }

   public void performWork(NodeManagerAction... actions) throws Exception
   {
      NodeManager nodeManager = new InVMNodeManager();
      List<NodeRunner> nodeRunners = new ArrayList<NodeRunner>();
      Thread[] threads = new Thread[actions.length];
      for (NodeManagerAction action : actions)
      {
         NodeRunner nodeRunner = new NodeRunner(nodeManager, action);
View Full Code Here

Examples of org.hornetq.core.server.NodeManager

      }
   }

   public void testId() throws Exception
   {
      NodeManager nodeManager = new FileLockNodeManager(getTemporaryDir());
      nodeManager.start();
      UUID id1 = nodeManager.getUUID();
      nodeManager.stop();
      nodeManager.start();
      assertEqualsByteArrays(id1.asBytes(), nodeManager.getUUID().asBytes());
      nodeManager.stop();
   }
View Full Code Here

Examples of org.jboss.cache.aop.test.NodeManager

//   public void testDummy() {}

   public void testIsReachable() throws Exception
   {
      log_.info("testIsReachable() ....");
      NodeManager pm_ = new NodeManager();

      pm_.setRootNode("root");
      pm_.addNode("root", "kanto");
      pm_.addNode("root.kanto", "tokyo");
      pm_.addNode("root.kanto", "yakahoma");
      pm_.addNode("root.kanto.tokyo", "handanshita");

      TestNode kanto = pm_.findNode("root.kanto");
      TestNode yakahoma = pm_.findNode("root.kanto.yakahoma");
      TestNode hadanshita = pm_.findNode("root.kanto.tokyo.handanshita");

      pm_ = new NodeManager();
      pm_.setRootNode("rt");
      pm_.addNode("rt", "test");
      TestNode test = pm_.findNode("rt.test");

//      cache_.putObject("/pm", pm_);

      assertTrue("Hadanshita should be reachable from Kanto ", ObjectUtil.isReachable(cache_, kanto, hadanshita));
      assertTrue("Hadanshita should also be reachable from Yakahoma! ", ObjectUtil.isReachable(cache_, yakahoma, hadanshita));
View Full Code Here

Examples of org.neo4j.kernel.impl.core.NodeManager

    }

    @Test public void testUserAddRemove() {
        service.setPermissionForUser("user1", RO);

        NodeManager nodeManager = graphDatabase.getDependencyResolver().resolveDependency(NodeManager.class);
        PropertyContainer properties = nodeManager.getGraphProperties();
        Transaction transaction = graphDatabase.beginTx();
        properties.setProperty("any other property", "should be ignored");
        transaction.success();
        transaction.finish();
View Full Code Here

Examples of org.neo4j.nlp.impl.manager.NodeManager

        List<Long> relList;

        Cache<Long, List<Long>> relCache = getRelationshipCache();
        relList = relCache.getIfPresent(start);

        NodeManager nodeManager = new NodeManager();
        String pattern = (String)nodeManager.getNodeAsMap(start,db).get("pattern");
        Node startNode = graphManager.getOrCreateNode(pattern, db);

        if(relList == null)
            relList = getLongs(start, db, null, startNode);
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.impl.NodeManager

      rawHtmlView = new HtmlViewImpl(rootElement);
      filteredHtmlView = new FilteredHtml(rawHtmlView);
      strippingHtmlView = new StrippingHtmlView(rootElement);
      repairer = new Repairer(persistentContentView, renderedContentView, strippingHtmlView,
          repairListener);
      nodeManager = new NodeManager(filteredHtmlView, renderedContentView, repairer);
      assert rootElement == fullRawSubstrate.getDocumentElement().getImplNodelet();
    } else {
      this.rootElement = null;
      rawHtmlView = null;
      filteredHtmlView = null;
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.