Package com.caucho.cloud.topology

Examples of com.caucho.cloud.topology.CloudCluster


    thread = Thread.currentThread();
    thread.setContextClassLoader(resin.getClassLoader());

    CloudSystem cloudSystem = TopologyService.getCurrent().getSystem();
   
    CloudCluster cluster = cloudSystem.createCluster("watchdog");
    CloudPod pod = cluster.createPod();
    pod.createStaticServer("default", "localhost", -1, false);

    _server = resin.createServer();
   
    thread.setContextClassLoader(_server.getClassLoader());
View Full Code Here


    os.write(HmuxRequest.HMUX_CHANNEL);
    os.write(channel >> 8);
    os.write(channel);
    */

    CloudCluster cluster = host.getCluster();

    if (cluster == null)
      return 0;

    writeString(os, HMUX_CLUSTER, cluster.getId());

    crc64 = Crc64.generate(crc64, cluster.getId());

    CloudPod []pods = cluster.getPodList();
   
    int serverLength = (pods.length > 0 ? pods[0].getServerLength() : 0);
    CloudServer []servers = (pods.length > 0
                             ? pods[0].getServerList()
                             : null);
View Full Code Here

  public void init()
  {
    if (_id == null)
      throw new ConfigException(L.l("'id' is a require attribute for <cluster>"));
   
    CloudCluster cluster = getCloudCluster();
   
    cluster.putData(new ClusterServerProgram(_serverDefaultProgram));

    getCloudPod();
  }
View Full Code Here

  }
 
  CloudPod getCloudPod()
  {
    if (_cloudPod == null) {
      CloudCluster cluster = _clusterConfig.getCloudCluster();
   
      _cloudPod = cluster.createPod();
    }
   
    return _cloudPod;
  }
View Full Code Here

TOP

Related Classes of com.caucho.cloud.topology.CloudCluster

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.