data sets are now printed by console client

pull/3/head
Stefan Feuerhahn 8 years ago
parent af6b48b80c
commit 9cedd0222f

@ -142,7 +142,13 @@ public final class DataSet implements Iterable<FcModelNode> {
@Override @Override
public String toString() { public String toString() {
return dataSetReference; StringBuilder sb = new StringBuilder();
sb.append(getReferenceStr());
for (FcModelNode member : members) {
sb.append("\n");
sb.append(member.toString());
}
return sb.toString();
} }
} }

@ -215,15 +215,21 @@ public final class ServerModel extends ModelNode {
for (ModelNode logicalDevice : children.values()) { for (ModelNode logicalDevice : children.values()) {
sb.append(logicalDevice.toString()); sb.append(logicalDevice.toString());
} }
sb.append("\nURCBs:"); sb.append("\n\n\n---------------------\nURCBs:");
for (Urcb urcb : getUrcbs()) { for (Urcb urcb : getUrcbs()) {
sb.append("\n\n").append(urcb); sb.append("\n\n").append(urcb);
} }
sb.append("\n\nBRCBs:"); sb.append("\n\n\n---------------------\nBRCBs:");
for (Brcb brcb : getBrcbs()) { for (Brcb brcb : getBrcbs()) {
sb.append("\n\n").append(brcb); sb.append("\n\n").append(brcb);
} }
sb.append("\n\n\n---------------------\nData sets:");
for (DataSet dataSet : getDataSets()) {
sb.append("\n\n").append(dataSet);
}
return sb.toString(); return sb.toString();
} }

Loading…
Cancel
Save