Package org.apache.stratos.adc.mgt.dto.xsd

Examples of org.apache.stratos.adc.mgt.dto.xsd.Cartridge


    }
  }

  public void info(String alias) throws CommandException {
    try {
            Cartridge cartridge = null;
            try {
                cartridge = stub.getCartridgeInfo(alias);
            } catch (ApplicationManagementServiceADCExceptionException e) {
              handleException(e);
                return;
            } catch (ApplicationManagementServiceNotSubscribedExceptionException e) {
              handleException("notsubscribed.error", e, alias);
      }
      if (logger.isDebugEnabled()) {
        logger.debug("Cartridge Info: {}", new Gson().toJson(cartridge));
      }
      final String FORMAT = "%-20s: %s%n";
      System.out.println();
      System.out.println("Cartridge Information");
      System.out.println("---------------------");
      System.out.format(FORMAT, "Cartridge", cartridge.getCartridgeType());
      System.out.format(FORMAT, "Name", cartridge.getDisplayName());
      System.out.format(FORMAT, "Description", cartridge.getDescription());
      System.out.format(FORMAT, "Version", cartridge.getVersion());
      System.out.format(FORMAT, "Tenancy Model", cartridge.getMultiTenant() ? "Multi-Tenant" : "Single-Tenant");
      System.out.format(FORMAT, "Alias", cartridge.getCartridgeAlias());
      if (StringUtils.isNotBlank(cartridge.getPolicyDescription())) {
        System.out.format(FORMAT, "Policy", cartridge.getPolicyDescription());
      }
      System.out.format(FORMAT, "Access URL(s)", getAccessURLs(cartridge));
      if (StringUtils.isNotBlank(cartridge.getIp())) {
        System.out.format(FORMAT, "Host", cartridge.getIp());
      }
      if (StringUtils.isNotBlank(cartridge.getDbUserName())) {
        System.out.format(FORMAT, "Database Username", cartridge.getDbUserName());
      }
      if (StringUtils.isNotBlank(cartridge.getPassword())) {
        System.out.format(FORMAT, "Password", cartridge.getPassword());
      }
      if (StringUtils.isNotBlank(cartridge.getRepoURL())) {
        System.out.format(FORMAT, "Repository URL", cartridge.getRepoURL());
      }
      System.out.format(FORMAT, "Status", cartridge.getStatus());
      System.out.format(FORMAT, "Running Instances",
          cartridge.getMultiTenant() ? "N/A" : String.valueOf(cartridge.getActiveInstances()));
      System.out.println();

        } catch (RemoteException e) {
          handleException(e);
        }
View Full Code Here


        if (repoURL != null) {
          System.out.println("GIT Repository URL: " + repoURL);
        }

        Cartridge cart = stub.getCartridgeInfo(alias);
        System.out.format("Your application is being published here. %s%n", getAccessURLs(cart));
      }
      if (subcriptionConnectInfo != null) {
        hostnames += ", " + subcriptionConnectInfo.getHostname();
        hostnamesLabel = "host names";

        Cartridge cart = stub.getCartridgeInfo(alias);
        System.out.format("Your data application is being published here. %s%n", getAccessURLs(cart));
      }
      if (externalRepoURL != null) {
        String takeTimeMsg = "(this might take few minutes... depending on repo size)\n";
        System.out.println(takeTimeMsg);
View Full Code Here

TOP

Related Classes of org.apache.stratos.adc.mgt.dto.xsd.Cartridge

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.