Skip to content

Commit

Permalink
Whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nivstein committed May 8, 2019
1 parent 67ac402 commit 5203d34
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@
@Produces(MediaType.APPLICATION_JSON)
public class StatusStorageResource {
private static final Logger logger = LoggerFactory.getLogger(StatusStorageResource.class);

private static final String hitsSizeName = "hits size";
private static final String hitsCountName = "hits count";
private static final String hitsDirectoryName = "hits";

private static final String namersSizeName = "namers size";
private static final String namersCountName = "namers count";
private static final String namersDirectoryName = "silver-namer";

private static final String sourceCodesSizeName = "sources size";
private static final String sourceCodesCountName = "sources count";
private static final String sourceCodeDirectoryName = "source-code";

private static final String cerebroSizeName = "cerebro size";
private static final String cerebroCountName = "cerebro count";
private static final String cerebroDirectoryName = "cerebro";

private static final String overmindSizeName = "overmind size";
private static final String overmindCountName = "overmind count";
private static final String overmindDirectoryName = "overmind";
Expand Down Expand Up @@ -71,12 +76,16 @@ private void collectDataInfo(MachineStatus machineStatus) {

machineStatus.setHitsSizeBytes(mappedData.get(hitsSizeName));
machineStatus.setHitsCount(mappedData.get(hitsCountName));

machineStatus.setNamersSizeBytes(mappedData.get(namersSizeName));
machineStatus.setNamersCount(mappedData.get(namersCountName));

machineStatus.setSourceCodeSizeBytes(mappedData.get(sourceCodesSizeName));
machineStatus.setSourceCodeCount(mappedData.get(sourceCodesCountName));

machineStatus.setCerebroSizeBytes(mappedData.get(cerebroSizeName));
machineStatus.setCerebroCount(mappedData.get(cerebroCountName));

machineStatus.setOvermindSizeBytes(mappedData.get(overmindSizeName));
machineStatus.setOvermindCount(mappedData.get(overmindCountName));
machineStatus.setFreeSpaceLeftBytes(directory.getFreeSpace());
Expand Down Expand Up @@ -137,7 +146,7 @@ private void directoryHandler(Map<String, Long> map, File directory) {
handleSpecialDirectory(directory, overmindSizeName, overmindCountName, map);
break;
}
default : {
default: {
traverseTreeForData(directory, map);
}
}
Expand Down

0 comments on commit 5203d34

Please sign in to comment.