Package org.platformlayer.core.model

Examples of org.platformlayer.core.model.HostPolicy


        case DELETE_REQUESTED:
        case DELETED:
          continue;
        }

        HostPolicy instanceHostPolicy = instance.hostPolicy;
        String instanceGroupId = instanceHostPolicy.groupId;
        if (Strings.isNullOrEmpty(instanceGroupId)) {
          instanceGroupId = DEFAULT_GROUP;
        }
View Full Code Here


    return bestRecord.candidate;
  }

  public static ScoreHostPolicy build(HostPolicy hostPolicy, DirectInstance newInstance) {
    if (hostPolicy == null) {
      hostPolicy = new HostPolicy();
    }

    ScoreHostPolicy chooser = Injection.getInstance(ScoreHostPolicy.class);
    chooser.hostPolicy = hostPolicy;
    chooser.newInstance = newInstance;
View Full Code Here

        case DELETE_REQUESTED:
        case DELETED:
          continue;
        }

        HostPolicy hostPolicy = instance.hostPolicy;

        if (Objects.equal(groupId, hostPolicy.groupId)) {
          record.matchingPolicy.add(instance);
        }
View Full Code Here

    MachineCreationRequest request = new MachineCreationRequest();

    SshKey sshKey = service.getSshKey();

    // There are problems using LXC with debootstrap
    request.hostPolicy = new HostPolicy();
    request.hostPolicy.allowRunInContainer = false;

    request.recipeId = null; // Null means 'use bootstrap image'
    request.sshPublicKey = sshKey.getKeyPair().getPublic();
    request.sshPublicKeyName = service.getSshKeyName();
View Full Code Here

  @Bound
  DirectInstance model;

  @Override
  protected void addChildren() throws OpsException {
    HostPolicy hostPolicy = model.hostPolicy;
    if (hostPolicy == null) {
      hostPolicy = new HostPolicy();
    }

    if (hostPolicy.allowRunInContainer) {
      // TODO: The variable initialization probably doesn't belong here
      LxcInstanceController lxc = injected(LxcInstanceController.class);
View Full Code Here

TOP

Related Classes of org.platformlayer.core.model.HostPolicy

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.