Examples of BuddyLocatorConfig


Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      {
         buddyLocatorClass = NextMemberBuddyLocator.class.getName();
      }
      Properties props = null;
      props = XmlConfigHelper.readPropertiesContents(element, "buddyLocatorProperties");
      BuddyLocatorConfig blc = new BuddyLocatorConfig();
      blc.setBuddyLocatorClass(buddyLocatorClass);
      blc.setBuddyLocatorProperties(props);
      brc.setBuddyLocatorConfig(blc);

      return brc;
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

   private void setupInternals(BuddyReplicationConfig config)
   {
      this.config = config;
      trace = log.isTraceEnabled();
      BuddyLocatorConfig blc = config.getBuddyLocatorConfig();
      try
      {
         // it's OK if the buddy locator config is null.
         buddyLocator = (blc == null) ? createDefaultBuddyLocator() : createBuddyLocator(blc);
      }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

   private void setupInternals(BuddyReplicationConfig config)
   {
      this.config = config;

      BuddyLocatorConfig blc = config.getBuddyLocatorConfig();
      try
      {
         // it's OK if the buddy locator config is null.        
         buddyLocator = (blc == null) ? createDefaultBuddyLocator() : createBuddyLocator(blc);
      }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      catch (IOException e)
      {
         log.warn("Caught exception reading buddyLocatorProperties", e);
         log.error("Unable to read buddyLocatorProperties specified!  Using defaults for [" + buddyLocatorClass + "]");
      }
      BuddyLocatorConfig blc = new BuddyLocatorConfig();
      blc.setBuddyLocatorClass(buddyLocatorClass);
      blc.setBuddyLocatorProperties(props);
      brc.setBuddyLocatorConfig(blc);

      return brc;
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      assertEquals(System.getProperty("java.io.tmpdir"), iclc.getProperties().get("location"));
     
      BuddyReplicationConfig brc = cfg.getBuddyReplicationConfig();
      assertTrue(brc.isEnabled());
      assertEquals("replaced", brc.getBuddyPoolName());
      BuddyLocatorConfig blc = brc.getBuddyLocatorConfig();
      assertEquals("3", blc.getBuddyLocatorProperties().get("numBuddies"));
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

         assertFalse(brc1 == brc2);
        
         assertEquals(7, brc2.getBuddyCommunicationTimeout());
         assertEquals("cloneGroup", brc2.getBuddyPoolName());
        
         BuddyLocatorConfig blc1 = brc1.getBuddyLocatorConfig();
         BuddyLocatorConfig blc2 = brc2.getBuddyLocatorConfig();
         assertFalse(blc1 == blc2);
         Properties p1 = blc1.getBuddyLocatorProperties();
         Properties p2 = blc2.getBuddyLocatorProperties();
         assertFalse(p1 == p2);
         assertEquals(p1, p2);
        
         // Eviction
         EvictionConfig ec1 = c.getEvictionConfig();
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      assertEquals("BR auto grav", false, brc.isAutoDataGravitation());
      assertEquals("BR remove find", false, brc.isDataGravitationRemoveOnFind());
      assertEquals("BR search backup", false, brc.isDataGravitationSearchBackupTrees());
      assertEquals("BR comm timeout", 600000, brc.getBuddyCommunicationTimeout());
      assertEquals("BR poolname", "testpool", brc.getBuddyPoolName());
      BuddyLocatorConfig blc = brc.getBuddyLocatorConfig();
      assertEquals("BR locator", "org.jboss.cache.buddyreplication.TestBuddyLocator", blc.getBuddyLocatorClass());
      Properties props = blc.getBuddyLocatorProperties();
      assertEquals("BR props", "2", props.get("numBuddies"));

      assertEquals("CacheLoaderConfig", getCacheLoaderConfig().toString(), wrapper.getCacheLoaderConfig().toString());
      CacheLoaderConfig clc = c.getCacheLoaderConfig();
      assertEquals("CL passivation", false, clc.isPassivation());
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      catch (IOException e)
      {
         log.warn("Caught exception reading buddyLocatorProperties", e);
         log.error("Unable to read buddyLocatorProperties specified!  Using defaults for [" + buddyLocatorClass + "]");
      }
      BuddyLocatorConfig blc = new BuddyLocatorConfig();
      blc.setBuddyLocatorClass(buddyLocatorClass);
      blc.setBuddyLocatorProperties(props);
      brc.setBuddyLocatorConfig(blc);

      return brc;
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

      {
         buddyLocatorClass = NextMemberBuddyLocator.class.getName();
      }
      Properties props = null;
      props = XmlConfigHelper.readPropertiesContents(element, "buddyLocatorProperties");
      BuddyLocatorConfig blc = new BuddyLocatorConfig();
      blc.setBuddyLocatorClass(buddyLocatorClass);
      blc.setBuddyLocatorProperties(props);
      brc.setBuddyLocatorConfig(blc);

      return brc;
   }
View Full Code Here

Examples of org.jboss.cache.config.BuddyReplicationConfig.BuddyLocatorConfig

   private void setupInternals(BuddyReplicationConfig config)
   {
      this.config = config;
      trace = log.isTraceEnabled();
      BuddyLocatorConfig blc = config.getBuddyLocatorConfig();
      try
      {
         // it's OK if the buddy locator config is null.
         buddyLocator = (blc == null) ? createDefaultBuddyLocator() : createBuddyLocator(blc);
      }
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.