diff --git a/src/main/java/com/takipi/oss/storage/data/status/MachineStatus.java b/src/main/java/com/takipi/oss/storage/data/status/MachineStatus.java index 3944de7..4c8ccf1 100644 --- a/src/main/java/com/takipi/oss/storage/data/status/MachineStatus.java +++ b/src/main/java/com/takipi/oss/storage/data/status/MachineStatus.java @@ -10,6 +10,8 @@ public class MachineStatus private long sourceCodeSizeBytes; private long cerebroCount; private long cerebroSizeBytes; + private long overmindCount; + private long overmindSizeBytes; private long freeSpaceLeftBytes; private String machineName; private String pid; @@ -87,6 +89,22 @@ public long getCerebroSizeBytes() { return cerebroSizeBytes; } + public void setOvermindCount(long overmindCount) { + this.overmindCount = overmindCount; + } + + public long getOvermindCount() { + return overmindCount; + } + + public void setOvermindSizeBytes(long overmindSizeBytes) { + this.overmindSizeBytes = overmindSizeBytes; + } + + public long getOvermindSizeBytes() { + return overmindSizeBytes; + } + public void setFreeSpaceLeftBytes(long freeSpaceLeftBytes) { this.freeSpaceLeftBytes = freeSpaceLeftBytes; } diff --git a/src/main/java/com/takipi/oss/storage/resources/diag/StatusStorageResource.java b/src/main/java/com/takipi/oss/storage/resources/diag/StatusStorageResource.java index 4fb1b92..67c1534 100644 --- a/src/main/java/com/takipi/oss/storage/resources/diag/StatusStorageResource.java +++ b/src/main/java/com/takipi/oss/storage/resources/diag/StatusStorageResource.java @@ -37,6 +37,9 @@ public class StatusStorageResource { 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"; protected final String folderPath; @@ -72,6 +75,8 @@ private void collectDataInfo(MachineStatus machineStatus) { 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()); } @@ -118,6 +123,10 @@ private void directoryHandler(Map map, File directory) { handleSpecialDirectory(directory, cerebroSizeName, cerebroCountName, map); break; } + case overmindDirectoryName: { + handleSpecialDirectory(directory, overmindSizeName, overmindCountName, map); + break; + } default : { traverseTreeForData(directory, map); } @@ -162,6 +171,8 @@ private Map initializeMapForData() { result.put(sourceCodesCountName, 0l); result.put(cerebroSizeName, 0l); result.put(cerebroCountName, 0l); + result.put(overmindSizeName, 0l); + result.put(overmindCountName, 0l); return result; }