@Test(expected = ApplicationException.class) @Ignore("No longer needed") public void setBadActive() throws IOException { aar.setActive("org.foo.BAD"); }
protected boolean setActive(String appName) { try { File active = appFile(appName, "active"); createParentDirs(active); return active.createNewFile() && updateTime(appName); } catch (IOException e) { log.warn("Unable to mark app {} as active", appName, e); throw new ApplicationException("Unable to mark app as active", e); } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { protected boolean setActive(String appName) { try { File active = appFile(appName, "active"); createParentDirs(active); return active.createNewFile() && updateTime(appName); } catch (IOException e) { log.warn("Unable to mark app {} as active", appName, e); throw new ApplicationException("Unable to mark app as active", e); } } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { protected boolean setActive(String appName) { try { File active = appFile(appName, "active"); createParentDirs(active); return active.createNewFile() && updateTime(appName); } catch (IOException e) { log.warn("Unable to mark app {} as active", appName, e); throw new ApplicationException("Unable to mark app as active", e); } }  }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { protected boolean setActive(String appName) { try { File active = appFile(appName, "active"); createParentDirs(active); return active.createNewFile() && updateTime(appName); } catch (IOException e) { log.warn("Unable to mark app {} as active", appName, e); throw new ApplicationException("Unable to mark app as active", e); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value); }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { protected boolean setActive(String appName) { try { File active = appFile(appName, "active"); createParentDirs(active); return active.createNewFile() && updateTime(appName); } catch (IOException e) { log.warn("Unable to mark app {} as active", appName, e); throw new ApplicationException("Unable to mark app as active", e); } }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value);  }