Package org.infinispan.client.hotrod.impl

Examples of org.infinispan.client.hotrod.impl.ConfigurationProperties


   /**
    * The given string should have the following structure: "host1:port2;host:port2...". Every host:port defines a
    * server.
    */
   public RemoteCacheManager(String servers, boolean start) {
      config = new ConfigurationProperties(servers);
      if (start) start();
   }
View Full Code Here


      try {
         properties.load(stream);
      } catch (IOException e) {
         throw new HotRodClientException("Issues configuring from client hotrod-client.properties", e);
      }
      config = new ConfigurationProperties(properties);
   }
View Full Code Here

   /**
    * Build a cache manager based on supplied properties.
    */
   public RemoteCacheManager(Properties props, boolean start) {
      this.config = new ConfigurationProperties(props);
      if (start) start();
   }
View Full Code Here

   public RemoteCacheManager(boolean start) {
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      InputStream stream = loader.getResourceAsStream(HOTROD_CLIENT_PROPERTIES);
      if (stream == null) {
         log.couldNotFindPropertiesFile(HOTROD_CLIENT_PROPERTIES);
         config = new ConfigurationProperties();
      } else {
         loadFromStream(stream);
      }
      if (start) start();
   }
View Full Code Here

    * Creates a remote cache manager aware of the Hot Rod server listening at host:port.
    *
    * @param start weather or not to start the RemoteCacheManager.
    */
   public RemoteCacheManager(String host, int port, boolean start) {
      config = new ConfigurationProperties(host + ":" + port);
      if (start) start();
   }
View Full Code Here

   /**
    * The given string should have the following structure: "host1:port2;host:port2...". Every host:port defines a
    * server.
    */
   public RemoteCacheManager(String servers, boolean start) {
      config = new ConfigurationProperties(servers);
      if (start) start();
   }
View Full Code Here

      try {
         properties.load(stream);
      } catch (IOException e) {
         throw new HotRodClientException("Issues configuring from client hotrod-client.properties", e);
      }
      config = new ConfigurationProperties(properties);
   }
View Full Code Here

  
   /**
    * Build a cache manager based on supplied properties.
    */
   public RemoteCacheManager(Properties props, boolean start, ClassLoader classLoader) {
      this.config = new ConfigurationProperties(props);
      this.classLoader = classLoader;
      if (start) start();
   }
View Full Code Here

   public RemoteCacheManager(boolean start) {
    this.classLoader = Thread.currentThread().getContextClassLoader();
      InputStream stream = FileLookupFactory.newInstance().lookupFile(HOTROD_CLIENT_PROPERTIES, classLoader);
      if (stream == null) {
         log.couldNotFindPropertiesFile(HOTROD_CLIENT_PROPERTIES);
         config = new ConfigurationProperties();
      } else {
         try {
            loadFromStream(stream);
         } finally {
            Util.close(stream);
View Full Code Here

    * Creates a remote cache manager aware of the Hot Rod server listening at host:port.
    *
    * @param start weather or not to start the RemoteCacheManager.
    */
   public RemoteCacheManager(String host, int port, boolean start, ClassLoader classLoader) {
      config = new ConfigurationProperties(host + ":" + port);
      this.classLoader = classLoader;
      if (start) start();
   }
View Full Code Here

TOP

Related Classes of org.infinispan.client.hotrod.impl.ConfigurationProperties

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.