Package org.platformlayer.service.cloud.openstack.model

Examples of org.platformlayer.service.cloud.openstack.model.OpenstackInstance


  //
  @Override
  protected void addChildren() throws OpsException {
    final OpenstackPublicEndpoint model = OpsContext.get().getInstance(OpenstackPublicEndpoint.class);

    OpenstackInstance instance = client.getItem(model.instance, OpenstackInstance.class);

    CloudInstanceMapper instanceMapper;
    {
      instanceMapper = injected(CloudInstanceMapper.class);
      instanceMapper.instance = instance;
View Full Code Here


    return config;
  }

  @Override
  public InstanceBase buildInstanceTemplate(MachineCreationRequest request) {
    OpenstackInstance rawMachine = new OpenstackInstance();

    rawMachine.minimumMemoryMb = request.minimumMemoryMB;
    rawMachine.hostname = request.hostname;

    return rawMachine;
View Full Code Here

  @Inject
  ImageFactory imageFactory;

  @Override
  protected void addChildren() throws OpsException {
    final OpenstackInstance model = OpsContext.get().getInstance(OpenstackInstance.class);

    CloudInstanceMapper instance;
    {
      instance = injected(CloudInstanceMapper.class);
      instance.instance = model;
      addChild(instance);
    }

    {
      OpsProvider<TagChanges> tagChanges = new OpsProvider<TagChanges>() {
        @Override
        public TagChanges get() {
          OpenstackComputeMachine machine = OpsContext.get().getInstance(OpenstackComputeMachine.class);

          TagChanges tagChanges = new TagChanges();
          tagChanges.addTags.add(Tag.INSTANCE_KEY.build(model.getKey()));
          tagChanges.addTags.addAll(machine.buildAddressTags());

          return tagChanges;
        }
      };
View Full Code Here

TOP

Related Classes of org.platformlayer.service.cloud.openstack.model.OpenstackInstance

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.