Skip to content

Commit bddeaa4

Browse files
committed
Improve information presentation for info
1 parent 0a33049 commit bddeaa4

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

modules/dcache/src/main/java/org/dcache/pool/json/PoolDataDetails.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,23 +201,23 @@ private String asOnOff(boolean value) {
201201
}
202202

203203
public void print(PrintWriter pw) {
204-
pw.println("Base directory : " + baseDir);
205-
pw.println("Version : " + poolVersion);
206-
pw.println("Report remove : " + asOnOff(isRemovalReported));
207-
pw.println("Pool Mode : " + poolMode);
204+
pw.println("Base directory : " + baseDir);
205+
pw.println("Version : " + poolVersion);
206+
pw.println("Report remove : " + asOnOff(isRemovalReported));
207+
pw.println("Pool Mode : " + poolMode);
208208
if (poolStatusCode != null) {
209-
pw.println("Detail : [" + poolStatusCode + "] "
209+
pw.println("Detail : [" + poolStatusCode + "] "
210210
+ poolStatusMessage);
211211
}
212-
pw.println("Hsm Load Suppr. : " + asOnOff(isHsmLoadSuppressed));
213-
pw.println("Ping Heartbeat : " + pingHeartbeatInSecs + " seconds");
214-
pw.println("Breakeven : " + breakEven);
215-
pw.println("LargeFileStore : " + largeFileStore);
216-
pw.println("P2P File Mode : " + p2pFileMode);
217-
pw.println("Hot File Repl. : " + asOnOff(isHotFileReplicationEnabled));
212+
pw.println("Hsm Load Suppression : " + asOnOff(isHsmLoadSuppressed));
213+
pw.println("Ping Heartbeat : " + pingHeartbeatInSecs + " seconds");
214+
pw.println("Breakeven : " + breakEven);
215+
pw.println("LargeFileStore : " + largeFileStore);
216+
pw.println("P2P File Mode : " + p2pFileMode);
217+
pw.println("Hot File Replication : " + asOnOff(isHotFileReplicationEnabled));
218218

219219
if (hybridInventory != null) {
220-
pw.println("Inventory : " + hybridInventory);
220+
pw.println("Inventory : " + hybridInventory);
221221
}
222222

223223
if (costData != null) {

modules/dcache/src/test/java/org/dcache/pool/json/PoolDataDetailsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ public void shouldPrintHotfileReplicationStatus() {
1717
details.print(pw);
1818

1919
String output = sw.toString();
20-
assertTrue("Output should contain Hot File Repl. status", output.contains("Hot File Repl. : ON"));
20+
assertTrue("Output should contain Hot File Replication status", output.contains("Hot File Replication : ON"));
2121

2222
details.setHotFileReplicationEnabled(false);
2323
sw = new StringWriter();
2424
pw = new PrintWriter(sw);
2525
details.print(pw);
2626
output = sw.toString();
27-
assertTrue("Output should contain HotFile Repl. status", output.contains("Hot File Repl. : OFF"));
27+
assertTrue("Output should contain HotFile Replication status", output.contains("Hot File Replication : OFF"));
2828
}
2929
}

0 commit comments

Comments
 (0)