Package org.platformlayer.service.cloud.direct.ops

Examples of org.platformlayer.service.cloud.direct.ops.InstanceScript


      bootstrap.hostname = model.hostname;

      instance.addChild(bootstrap);
    }

    InstanceScript script;
    {
      script = instance.addChild(InstanceScript.class);
      script.filePath = new File(DirectHostController.LXC_INSTANCE_DIR, id);

      String key = "lxc-" + id;
      script.key = key;

      script.addresses.add(address4);
      script.addresses.add(address6);

      // script.hostPrimaryInterface = hostModel.publicInterface;

      Command command = Command.build("lxc-start");
      command.addLiteral("--name").addQuoted(id);
      script.launchInstanceCommand = command;
    }

    {
      // ManagedSupervisordInstance service = instance.addChild(ManagedSupervisordInstance.class);
      StandardService service = instance.addChild(StandardService.class);
      script.configure(model, service);
    }

    {
      OpsProvider<TagChanges> tagChanges = new OpsProvider<TagChanges>() {
        @Override
View Full Code Here


  @Override
  protected void addChildren() throws OpsException {
    addChild(TemplatedFile.build(buildDeviceConfigModel(), getDeviceConfigPath()));

    InstanceScript script;
    {
      script = addChild(InstanceScript.class);
      script.filePath = new File(DirectHostController.KVM_INSTANCE_DIR, id);

      String key = "kvm-" + id;
      script.key = key;

      script.addresses.addAll(addresses);

      // script.hostPrimaryInterface = hostModel.publicInterface;

      script.launchInstanceCommand = buildKvmCommand();
    }

    {
      // ManagedSupervisordInstance service = addChild(ManagedSupervisordInstance.class);
      StandardService service = addChild(StandardService.class);
      script.configure(model, service);
    }
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.service.cloud.direct.ops.InstanceScript

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.