Package com.caringo.client

Examples of com.caringo.client.ScspClient


                throw new ConfigurationException("Could not create CAStor zeroconf locator for '" + clusterName + "'");
            }
        }
        try {
            s_logger.info("CAStor client starting: " + (_domain==null ? "default domain" : "domain " + _domain) + " " + (clusterName==null ? Arrays.toString(castorNodes) : clusterName) + " :" + castorPort);
            _scspClient = new ScspClient(_locator, castorPort, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_RETRIES, CONNECTION_TIMEOUT, CM_IDLE_TIMEOUT);
            _scspClient.start();
        } catch (Exception e) {
            s_logger.error("Unable to create CAStor client for '" + mountedRoot + "': " + e.getMessage(), e);
            throw new ConfigurationException("Unable to create CAStor client for '" + mountedRoot + "': " + e);
        }
View Full Code Here


            }
        }
        try {
            s_logger.info("CAStor client starting: " + (_domain == null ? "default domain" : "domain " + _domain) + " " +
                (clusterName == null ? Arrays.toString(castorNodes) : clusterName) + " :" + castorPort);
            _scspClient = new ScspClient(_locator, castorPort, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_RETRIES, CONNECTION_TIMEOUT, CM_IDLE_TIMEOUT);
            _scspClient.start();
        } catch (Exception e) {
            s_logger.error("Unable to create CAStor client for '" + mountedRoot + "': " + e.getMessage(), e);
            throw new ConfigurationException("Unable to create CAStor client for '" + mountedRoot + "': " + e);
        }
View Full Code Here

  public static void main(String[] args) {
    String[] hosts = new String[1];
    String[] localHosts = new String[1];
    hosts[0] = "10.0.0.103";
    localHosts[0] = "10.136.1.1";
    ScspClient client = new ScspClient(hosts,80,4,4);
    ScspClient localClient = new ScspClient(localHosts, 80, 4, 4);
    try
   
      client.start();
      localClient.start();
    }
    catch (Exception ex)
    {
      ex.printStackTrace(); // might as well continue, we're going down regardless
    }
   
    if (!CheckConnections(client)) {
      PrintUsage();
    }
    else {
      try
      {
        RunExamples(client, localClient);
      }
     
      finally
      {
        client.stop();
        localClient.stop();
      }
    }
  }
View Full Code Here

        this.enumName = null;
        this.startScspQueryArgs = new ScspQueryArgs();
        this.nextScspQueryArgs = null;
       
        String[] hosts = { publisherHost };
        this.scspClient = new ScspClient(hosts, publisherPort, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_RETRIES);
       
        // Start the ScspClient
        try {
         
          this.scspClient.start();
View Full Code Here

                throw new ConfigurationException("Could not create CAStor zeroconf locator for '" + clusterName + "'");
            }
        }
        try {
            s_logger.info("CAStor client starting: " + (_domain==null ? "default domain" : "domain " + _domain) + " " + (clusterName==null ? Arrays.toString(castorNodes) : clusterName) + " :" + castorPort);
            _scspClient = new ScspClient(_locator, castorPort, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_RETRIES, CONNECTION_TIMEOUT, CM_IDLE_TIMEOUT);
            _scspClient.start();
        } catch (Exception e) {
            s_logger.error("Unable to create CAStor client for '" + mountedRoot + "': " + e.getMessage(), e);
            throw new ConfigurationException("Unable to create CAStor client for '" + mountedRoot + "': " + e);
        }
View Full Code Here

TOP

Related Classes of com.caringo.client.ScspClient

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.