예제 #1
0
 /** Perform release (SNAPSHOT to RELEASE) for the given ApplicationIDs n-cubes. */
 public static int releaseCubes(ApplicationID appId, String newSnapVer) {
   validateAppId(appId);
   ApplicationID.validateVersion(newSnapVer);
   int rows = getPersister().releaseCubes(appId, newSnapVer);
   clearCacheForBranches(appId);
   // TODO:  Does broadcast need to send all branches that have changed as a result of this?
   broadcast(appId);
   return rows;
 }
예제 #2
0
  public static void changeVersionValue(ApplicationID appId, String newVersion) {
    validateAppId(appId);

    if (appId.isRelease()) {
      throw new IllegalArgumentException(
          "Cannot change the version of a " + ReleaseStatus.RELEASE + " app, app: " + appId);
    }
    ApplicationID.validateVersion(newVersion);
    getPersister().changeVersionValue(appId, newVersion);
    clearCache(appId);
    clearCache(appId.asVersion(newVersion));
    broadcast(appId);
  }