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

Examples of org.platformlayer.service.cloud.direct.ops.CloudInstanceMapper.addChild()


      instance = injected(CloudInstanceMapper.class);
      instance.instance = OpsContext.get().getInstance(DirectInstance.class);
      addChild(instance);
    }

    instance.addChild(ManagedDirectory.build(getInstanceDir(), "700"));

    // TODO: If we're not going to assign an IPV4 redirect, we might not need this
    final Provider<AddressModel> address4;
    {
      NetworkAddressPoolAssignment provider = instance.addChild(NetworkAddressPoolAssignment.class);
View Full Code Here


    instance.addChild(ManagedDirectory.build(getInstanceDir(), "700"));

    // TODO: If we're not going to assign an IPV4 redirect, we might not need this
    final Provider<AddressModel> address4;
    {
      NetworkAddressPoolAssignment provider = instance.addChild(NetworkAddressPoolAssignment.class);
      provider.holder = model.getKey();
      provider.poolProvider = DirectCloudUtils.getPrivateAddressPool4();

      address4 = provider;
    }
View Full Code Here

      address4 = provider;
    }

    final Provider<AddressModel> address6;
    {
      NetworkAddressPoolAssignment provider = instance.addChild(NetworkAddressPoolAssignment.class);
      provider.holder = model.getKey();
      provider.poolProvider = directCloudHelpers.getAddressPool6();

      address6 = provider;
    }
View Full Code Here

    {
      DownloadImage download = injected(DownloadImage.class);
      download.imageFile = new File(getInstanceDir(), "rootfs");
      download.recipeKey = model.recipeId;
      download.imageFormats = Collections.singletonList(ImageFormat.Tar);
      instance.addChild(download);
    }

    {
      LxcBootstrap bootstrap = injected(LxcBootstrap.class);
      bootstrap.address4 = address4;
View Full Code Here

        throw new OpsException("Error deserializing SSH key", e);
      }

      bootstrap.hostname = model.hostname;

      instance.addChild(bootstrap);
    }

    InstanceScript script;
    {
      script = instance.addChild(InstanceScript.class);
View Full Code Here

      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;
View Full Code Here

      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>() {
View Full Code Here

          return tagChanges;
        }
      };

      instance.addChild(Tagger.build(model, tagChanges));
    }
  }

  private File getInstanceDir() {
    return instanceDir;
View Full Code Here

      instance = injected(CloudInstanceMapper.class);
      instance.instance = OpsContext.get().getInstance(DirectInstance.class);
      addChild(instance);
    }

    instance.addChild(ManagedDirectory.build(getInstanceDir(), "700"));

    final NetworkAddressPoolAssignment address4;
    {
      address4 = instance.addChild(NetworkAddressPoolAssignment.class);
      address4.holder = owner;
View Full Code Here

    instance.addChild(ManagedDirectory.build(getInstanceDir(), "700"));

    final NetworkAddressPoolAssignment address4;
    {
      address4 = instance.addChild(NetworkAddressPoolAssignment.class);
      address4.holder = owner;
      address4.poolProvider = DirectCloudUtils.getPrivateAddressPool4();
    }

    final NetworkAddressPoolAssignment address6;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.