Package com.caucho.cloud.topology

Examples of com.caucho.cloud.topology.CloudPod


    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


  }

  @PostConstruct
  public void init()
  {
    CloudPod pod = _pod.getCloudPod();
   
    if (pod.getServerLength() >= 64) {
      throw new ConfigException(L.l("The server cannot be added to the current pod because it would be more than 64 servers to the pod."));
    }

    if (isDynamic()) {
      _cloudServer = pod.findServer(getId());
     
      if (_cloudServer == null)
        throw new IllegalStateException(L.l("Dynamic server '{0}' is expected to exist here.",
                                            getId()));
    } else {
      _cloudServer = pod.createStaticServer(getId(),
                                            getAddress(),
                                            getPort(),
                                            isSecure());
    }
   
View Full Code Here

    /*
    if (_id == null)
      throw new ConfigException(L.l("'id' is a required attribute for <pod>"));
      */
   
    CloudPod pod = getCloudPod();
   
    pod.putData(new ClusterServerProgram(_serverDefaultProgram));

    getCloudPod();
  }
View Full Code Here

TOP

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

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.