Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.ApplicationResourceDTO


    // available apps
    if (hasApplicationByName(name)) {
      throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
    }

    ApplicationResourceDTO applicationDTO =
        new CreateApplicationRequest().execute(name, cartridge, scale, gearProfile, initialGitUrl, timeout,
            null, cartridges);
    IApplication application = new ApplicationResource(applicationDTO, this);

    getOrLoadApplications().add(application);
View Full Code Here


    // available apps
    if (hasApplicationByName(name)) {
      throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
    }

    ApplicationResourceDTO applicationDTO =
        new CreateApplicationRequest().execute(
            name, cartridge, scale, gearProfile, initialGitUrl, timeout, environmentVariables, cartridges);
    IApplication application = new ApplicationResource(applicationDTO, this);

    getOrLoadApplications().add(application);
View Full Code Here

  }

  public void addAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new AddAliasRequest().execute(alias);
    updateAliases(applicationDTO);

  }
View Full Code Here

  }

  public void removeAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new RemoveAliasRequest().execute(alias);
    updateAliases(applicationDTO);
  }
View Full Code Here

  @Override
  public void addAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new AddAliasRequest().execute(alias);
    updateAliases(applicationDTO);

  }
View Full Code Here

  @Override
  public void removeAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new RemoveAliasRequest().execute(alias);
    updateAliases(applicationDTO);
  }
View Full Code Here

    if (this.deploymentType.equals(deploymentType)) {
      return this.deploymentType;
    }
 
    final ApplicationResourceDTO applicationDTO =
        new UpdateRequest().execute(deploymentType);
    return this.deploymentType = applicationDTO.getDeploymentType();
  }
View Full Code Here

  }

  public void addAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new AddAliasRequest().execute(alias);
    updateAliases(applicationDTO);

  }
View Full Code Here

  }

  public void removeAlias(String alias) throws OpenShiftException {
    Assert.notNull(alias);

    ApplicationResourceDTO applicationDTO = new RemoveAliasRequest().execute(alias);
    updateAliases(applicationDTO);
  }
View Full Code Here

    // available apps
    if (hasApplicationByName(name)) {
      throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
    }

    ApplicationResourceDTO applicationDTO =
        new CreateApplicationRequest().execute(name, cartridge, scale, gearProfile, initialGitUrl);
    IApplication application = new ApplicationResource(applicationDTO, cartridge, this);

    getOrLoadApplications().add(application);
    return application;
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.ApplicationResourceDTO

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.