Package com.openshift.internal.client.response

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


    if (hasDomain(id)) {
      throw new OpenShiftException("Domain {0} already exists", id);
    }

    final DomainResourceDTO domainDTO = new AddDomainRequest().execute(id);
    final IDomain domain = new DomainResource(domainDTO, this);
    this.domains.add(domain);
    return domain;
  }
View Full Code Here


  @Override
  public void rename(String id) throws OpenShiftException {
    Assert.notNull(id);

    DomainResourceDTO domainDTO = new UpdateDomainRequest().execute(id);
    this.id = domainDTO.getId();
    this.suffix = domainDTO.getSuffix();
    this.getLinks().clear();
    this.getLinks().putAll(domainDTO.getLinks());
  }
View Full Code Here

    return gearSizes;
  }

  @Override
  public void refresh() throws OpenShiftException {
    final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
    this.id = domainResourceDTO.getId();
    this.suffix = domainResourceDTO.getSuffix();
    if (applications == null) {
      // not loaded yet
      loadApplications();
    } else {
      updateApplications();
View Full Code Here

    if (hasDomain(id)) {
      throw new OpenShiftException("Domain {0} already exists", id);
    }

    final DomainResourceDTO domainDTO = new AddDomainRequest().execute(id);
    final IDomain domain = new DomainResource(domainDTO, this);
    this.domains.add(domain);
    return domain;
  }
View Full Code Here

  }

  public IDomain showDomain(String id) throws OpenShiftException {
    Assert.notNull(id);

    final DomainResourceDTO domainDTO = new ShowDomainRequest().execute(id);
    final IDomain domain = new DomainResource(domainDTO, this);
    // TODO: implement caching
    return domain;
  }
View Full Code Here

  }

  public void rename(String id) throws OpenShiftException {
    Assert.notNull(id);

    DomainResourceDTO domainDTO = new UpdateDomainRequest().execute(id);
    this.id = domainDTO.getId();
    this.suffix = domainDTO.getSuffix();
    this.getLinks().clear();
    this.getLinks().putAll(domainDTO.getLinks());
  }
View Full Code Here

    return gearSizes;
  }
 
 
  public void refresh() throws OpenShiftException {
    final DomainResourceDTO domainResourceDTO =  new GetDomainRequest().execute();
    this.id = domainResourceDTO.getId();
    this.suffix = domainResourceDTO.getSuffix();
    if(this.applications != null) {
      this.applications = loadApplications();
    }
   
  }
View Full Code Here

    if (hasDomain(id)) {
      throw new OpenShiftException("Domain {0} already exists", id);
    }

    final DomainResourceDTO domainDTO = new AddDomainRequest().execute(id);
    final IDomain domain = new DomainResource(domainDTO, this);
    this.domains.add(domain);
    return domain;
  }
View Full Code Here

  @Override
  public void rename(String id) throws OpenShiftException {
    Assert.notNull(id);

    DomainResourceDTO domainDTO = new UpdateDomainRequest().execute(id);
    this.id = domainDTO.getId();
    this.suffix = domainDTO.getSuffix();
    this.getLinks().clear();
    this.getLinks().putAll(domainDTO.getLinks());
  }
View Full Code Here

    return gearSizes;
  }

  @Override
  public void refresh() throws OpenShiftException {
    final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
    this.id = domainResourceDTO.getId();
    this.suffix = domainResourceDTO.getSuffix();
    if (applications == null) {
      // not loaded yet
      loadApplications();
    } else {
      updateApplications();
View Full Code Here

TOP

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

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.