Package com.zeroturnaround.liverebel.api

Examples of com.zeroturnaround.liverebel.api.ApplicationInfo


  private static void showActiveAppVersionsAndUrls(CommandCenter center) {
    Map<String, ApplicationInfo> applications = center.getApplications();
    for (Entry<String, ApplicationInfo> entry : applications.entrySet()) {
      String appIdInCenter = entry.getKey();
      ApplicationInfo app = entry.getValue();
      log.info("active version of '{}' are: {}. Application is deployed to following urls: {}", appIdInCenter, app.getActiveVersions(), app.getUrls());
    }
  }
View Full Code Here


    update.execute();
    log.info("Servers are now updated");
  }

  private static String getLatestVersionId(CommandCenter center, String appName) {
    ApplicationInfo application = center.getApplication(appName);
    Collection<VersionInfo> versionInfos = application.getVersionsMap().values();
    VersionInfo lastVersion = getLatestVersion(versionInfos);
    return lastVersion.getId();
  }
View Full Code Here

TOP

Related Classes of com.zeroturnaround.liverebel.api.ApplicationInfo

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.