@GET @Path(EXPORTS_RESOURCES_PATH) @Produces({MediaType.APPLICATION_JSON}) public PublishedExportsSet gePublishedExports() { return appState.getPublishedExportsSet(); }
@GET @Path(EXPORTS_RESOURCES_PATH) @Produces({MediaType.APPLICATION_JSON}) public PublishedExportsSet gePublishedExports() { return appState.getPublishedExportsSet(); }
@GET @Path(EXPORT_RESOURCE_PATH) @Produces({MediaType.APPLICATION_JSON}) public PublishedExports getAMExports2(@PathParam("exportname") String exportname, @Context UriInfo uriInfo, @Context HttpServletResponse res) { init(res, uriInfo); PublishedExportsSet set = appState.getPublishedExportsSet(); return set.get(exportname); }
@GET @Path(EXPORT_RESOURCE_PATH) @Produces({MediaType.APPLICATION_JSON}) public PublishedExports getAMExports2(@PathParam("exportname") String exportname, @Context UriInfo uriInfo, @Context HttpServletResponse res) { init(res, uriInfo); PublishedExportsSet set = appState.getPublishedExportsSet(); return set.get(exportname); }
private void publishModifiedExportGroups(Set<String> modifiedGroups) { for (String groupName : modifiedGroups) { Map<String, List<ExportEntry>> entries = this.exportGroups.get(groupName); // Publish in old format for the time being Map<String, String> simpleEntries = new HashMap<String, String>(); for (Map.Entry<String, List<ExportEntry>> entry : entries.entrySet()) { List<ExportEntry> exports = entry.getValue(); if (SliderUtils.isNotEmpty(exports)) { // there is no support for multiple exports per name - so extract only the first one simpleEntries.put(entry.getKey(), entry.getValue().get(0).getValue()); } } if (!getAmState().getAppConfSnapshot().getComponentOptBool( groupName, AgentKeys.AM_CONFIG_GENERATION, false)) { publishApplicationInstanceData(groupName, groupName, simpleEntries.entrySet()); } PublishedExports exports = new PublishedExports(groupName); exports.setUpdated(new Date().getTime()); exports.putValues(entries.entrySet()); getAmState().getPublishedExportsSet().put(groupName, exports); } }
private void publishModifiedExportGroups(Set<String> modifiedGroups) { for (String groupName : modifiedGroups) { Map<String, List<ExportEntry>> entries = this.exportGroups.get(groupName); // Publish in old format for the time being Map<String, String> simpleEntries = new HashMap<String, String>(); for (Map.Entry<String, List<ExportEntry>> entry : entries.entrySet()) { List<ExportEntry> exports = entry.getValue(); if (SliderUtils.isNotEmpty(exports)) { // there is no support for multiple exports per name - so extract only the first one simpleEntries.put(entry.getKey(), entry.getValue().get(0).getValue()); } } if (!getAmState().getAppConfSnapshot().getComponentOptBool( groupName, AgentKeys.AM_CONFIG_GENERATION, false)) { publishApplicationInstanceData(groupName, groupName, simpleEntries.entrySet()); } PublishedExports exports = new PublishedExports(groupName); exports.setUpdated(new Date().getTime()); exports.putValues(entries.entrySet()); getAmState().getPublishedExportsSet().put(groupName, exports); } }
updateExportsFromList(exports, getLogFolderExports()); getAmState().getPublishedExportsSet().put(CONTAINER_LOGS_TAG, exports); updateExportsFromList(exports, getWorkFolderExports()); getAmState().getPublishedExportsSet().put(CONTAINER_PWDS_TAG, exports);
updateExportsFromList(exports, getLogFolderExports()); getAmState().getPublishedExportsSet().put(CONTAINER_LOGS_TAG, exports); updateExportsFromList(exports, getWorkFolderExports()); getAmState().getPublishedExportsSet().put(CONTAINER_PWDS_TAG, exports);
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); replay(access);
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); replay(access);
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); expect(access.getAppConfSnapshot()).andReturn(new ConfTreeOperations( new ConfTree())).anyTimes();
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); expect(access.getAppConfSnapshot()).andReturn(new ConfTreeOperations( new ConfTree())).anyTimes();
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); expect(access.getAppConfSnapshot()).andReturn(new ConfTreeOperations( new ConfTree())).anyTimes();
doReturn(access).when(mockAps).getAmState(); PublishedExportsSet pubExpSet = new PublishedExportsSet(); expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); expect(access.getAppConfSnapshot()).andReturn(new ConfTreeOperations( new ConfTree())).anyTimes();
expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); ClusterDescription desc = new ClusterDescription(); desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181");
expect(access.getPublishedExportsSet()).andReturn(pubExpSet).anyTimes(); ClusterDescription desc = new ClusterDescription(); desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181");
exports.h3("Exports"); ul = html.ul(); enumeratePublishedExports(appState.getPublishedExportsSet(), ul); ul._(); exports._();
exports.h3("Exports"); ul = html.ul(); enumeratePublishedExports(appState.getPublishedExportsSet(), ul); ul._(); exports._();