Package org.jboss.cache.factories

Examples of org.jboss.cache.factories.XmlConfigurationParser$ParsedAttributes


      try
      {
         //         cache_ = new PojoTreeCache();
         //         cache_.setConfiguration(new XmlConfigurationParser().parseFile(configStr));

         XmlConfigurationParser parser = new XmlConfigurationParser();
         Configuration expected = parser.parseFile(configStr);

         init(expected, toStart);
      }
      catch (Exception e)
      {
View Full Code Here


      return createCache(configFileName, true);
   }

   public Cache<K, V> createCache(String configFileName, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseFile(configFileName);
      return createCache(c, start);
   }
View Full Code Here

      this.defaultClassLoader = loader;
   }

   public Cache<K, V> createCache(InputStream is) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseStream(is);
      return createCache(c);
   }
View Full Code Here

      return createCache(c);
   }

   public Cache<K, V> createCache(InputStream is, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseStream(is);
      return createCache(c, start);
   }
View Full Code Here

      assertTrue(blc.isIgnoreColocatedBuddies());
   }

   public void testXmlConfig() throws Exception
   {
      cache = (CacheSPI<Object, Object>) new DefaultCacheFactory<Object, Object>().createCache(new XmlConfigurationParser().parseFile("META-INF/buddy-replication-cache-service.xml"), false);
      cache.create();
      cache.start();
      BuddyManager bm = cache.getBuddyManager();
      assertNotNull(bm);
      assertTrue(bm.isEnabled());
View Full Code Here

      return createCache(configFileName, true);
   }

   public Cache<K, V> createCache(String configFileName, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseFile(configFileName);
      return createCache(c, start);
   }
View Full Code Here

      this.defaultClassLoader = loader;
   }

   public Cache<K, V> createCache(InputStream is) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseStream(is);
      return createCache(c);
   }
View Full Code Here

      return createCache(c);
   }

   public Cache<K, V> createCache(InputStream is, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseStream(is);
      return createCache(c, start);
   }
View Full Code Here

      // comparing an XML block is a PITA.
   }

   public void testMultiplexerStack() throws Exception
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration conf = parser.parseFile("META-INF/conf-test/mux-service.xml");

      // test that multiplexer settings have been read in properly.
      //assertEquals("MultiplexerService", "jgroups.mux:name=Multiplexer", conf.getMultiplexerService());
      assertEquals("MultiplexerStack", "tcp", conf.getMultiplexerStack());
      assertNull("ClusterConfig", conf.getClusterConfig());
View Full Code Here

      System.setProperty(NUM_BUDDIES_PROP, "3");
      System.setProperty(SYNC_COMMIT_PROP, "false");
      System.setProperty(MAX_NODES_PROP, "1000");
      System.setProperty(BUDDY_POOL_PROP, "replaced");
     
      Configuration cfg = new XmlConfigurationParser().parseFile(STRING_REPLACED_FILE);
     
      assertEquals(NodeLockingScheme.OPTIMISTIC, cfg.getNodeLockingScheme());
      assertEquals(CacheMode.REPL_SYNC, cfg.getCacheMode());
      assertFalse(cfg.isSyncCommitPhase());
      assertTrue(cfg.isSyncRollbackPhase());
View Full Code Here

TOP

Related Classes of org.jboss.cache.factories.XmlConfigurationParser$ParsedAttributes

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.