Package com.openshift.client.cartridge

Examples of com.openshift.client.cartridge.StandaloneCartridge


  @Test
  public void shouldDownloadableStandaloneNotEqualsDownloadableEmbeddable() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertThat(new StandaloneCartridge(new URL(CartridgeTestUtils.GO_URL)))
        .isNotEqualTo(new EmbeddableCartridge(new URL(CartridgeTestUtils.FOREMAN_URL)));
  }
View Full Code Here


  @Test
  public void standaloneCartridgeResourceShouldEqualStandAloneCartridgeWithoutName() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertEquals(new StandaloneCartridge(new URL(CartridgeTestUtils.FOREMAN_URL)),
        new StandaloneCartridge("redhat", new URL(CartridgeTestUtils.FOREMAN_URL)));
  }
View Full Code Here

      }
    }
  }

  private void createStandaloneCartrdige(CartridgeResourceDTO cartridgeDTO) {
    this.cartridge = new StandaloneCartridge(
        cartridgeDTO.getName(),
        cartridgeDTO.getUrl(),
        cartridgeDTO.getDisplayName(),
        cartridgeDTO.getDescription());
  }
View Full Code Here

  private void addCartridgeCartridge(CartridgeResourceDTO dto, List<IStandaloneCartridge> standaloneCartridges,
      List<IEmbeddableCartridge> embeddableCartridges) {
    switch (dto.getType()) {
    case STANDALONE:
      standaloneCartridges.add(
          new StandaloneCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription()));
      break;
    case EMBEDDED:
      embeddableCartridges.add(
          new EmbeddableCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription()));
      break;
View Full Code Here

            cartridgeUrl = defaultCartridgeUrl;
        }
        String[] cartridgeUrls = cartridgeUrl.split(" ");
        LOG.info("Creating cartridges: " + cartridgeUrl);
        String standAloneCartridgeUrl = cartridgeUrls[0];
        StandaloneCartridge cartridge;
        if (standAloneCartridgeUrl.startsWith(PREFIX_CARTRIDGE_ID)) {
            cartridge = new StandaloneCartridge(standAloneCartridgeUrl.substring(PREFIX_CARTRIDGE_ID.length()));
        } else {
            cartridge = new StandaloneCartridge(new URL(standAloneCartridgeUrl));
        }

        String zookeeperUrl = fabricService.get().getZookeeperUrl();
        String zookeeperPassword = fabricService.get().getZookeeperPassword();
View Full Code Here

        IDomain domain = domainId != null ? user.getDomain(domainId) : user.getDefaultDomain();
        if (domainId != null && domain == null) {
            domain = user.createDomain(domainId);
        }

        IApplication application = domain.createApplication(applicationName, new StandaloneCartridge(cartridge), null, new GearProfile(gearProfile));
        System.out.println(application.getCreationLog());
        return null;
    }
View Full Code Here

TOP

Related Classes of com.openshift.client.cartridge.StandaloneCartridge

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.