private void addSubSection (SectionResultData section, Map<String, String> attrMap, String headerText) { if (!attrMap.isEmpty()) { SectionResultData subSection = section.addSection(); Set<String> attributes = new TreeSet<String>(attrMap.keySet()); subSection.setHeader(headerText); for (String attribute : attributes) { String attributeValue = attrMap.get(attribute); subSection.addData(attribute, attributeValue); } } } /**
private void addSubSection (SectionResultData section, Map<String, String> attrMap, String headerText) { if (!attrMap.isEmpty()) { SectionResultData subSection = section.addSection(); Set<String> attributes = new TreeSet<String>(attrMap.keySet()); subSection.setHeader(headerText); for (String attribute : attributes) { String attributeValue = attrMap.get(attribute); subSection.addData(attribute, attributeValue); } } } /**
private void addSection(CompositeResultData crd, Map<String, String> attrMap, String headerText) { if (attrMap != null && !attrMap.isEmpty()) { SectionResultData section = crd.addSection(); section.setHeader(headerText); section.addSeparator('.'); Set<String> attributes = new TreeSet<String>(attrMap.keySet()); for (String attribute : attributes) { String attributeValue = attrMap.get(attribute); section.addData(attribute, attributeValue); } } }
clientServiceSection.setHeader("Cache Server Information");
backedupDiskStoresSection.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_BACKED_UP_DISK_STORES); TabularResultData backedupDiskStoresTable = backedupDiskStoresSection.addTable(); noMembersBackedUp.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_NO_DISKSTORES_BACKED_UP); TabularResultData offlineDiskStoresTable = offlineDiskStoresSection.addTable(); offlineDiskStoresSection.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_OFFLINE_DISK_STORES); for (PersistentID offlineDiskStore : offlineDiskStores) { offlineDiskStoresTable.accumulate(CliStrings.BACKUP_DISK_STORE_MSG_UUID, offlineDiskStore.getUUID().toString());
backedupDiskStoresSection.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_BACKED_UP_DISK_STORES); TabularResultData backedupDiskStoresTable = backedupDiskStoresSection.addTable(); noMembersBackedUp.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_NO_DISKSTORES_BACKED_UP); TabularResultData offlineDiskStoresTable = offlineDiskStoresSection.addTable(); offlineDiskStoresSection.setHeader(CliStrings.BACKUP_DISK_STORE_MSG_OFFLINE_DISK_STORES); for (PersistentID offlineDiskStore : offlineDiskStores) { offlineDiskStoresTable.accumulate(CliStrings.BACKUP_DISK_STORE_MSG_UUID, offlineDiskStore.getUUID().toString());
cacheServerSection.setHeader("Cache-server attributes");
clientServiceSection.setHeader("Cache Server Information");
cacheServerSection.setHeader("Cache-server attributes");
public void addChildSection(SectionResultData parentSection, Map<String, String> map, String header) { if (!map.isEmpty()) { Set<String> attributes = map.keySet(); SectionResultData section = parentSection.addSection(); section.setHeader(header); for (String attribute : attributes) { section.addData(attribute, map.get(attribute)); } } }
private void addSection(CompositeResultData crd, Map<String, String> attrMap, String headerText) { if (attrMap != null && !attrMap.isEmpty()) { SectionResultData section = crd.addSection(); section.setHeader(headerText); section.addSeparator('.'); Set<String> attributes = new TreeSet<String>(attrMap.keySet()); for (String attribute : attributes) { String attributeValue = attrMap.get(attribute); section.addData(attribute, attributeValue); } } }
public void addChildSection(SectionResultData parentSection, Map<String, String> map, String header) { if (!map.isEmpty()) { Set<String> attributes = map.keySet(); SectionResultData section = parentSection.addSection(); section.setHeader(header); for (String attribute : attributes) { section.addData(attribute, map.get(attribute)); } } }