collector.setMaxFreeSwapSpace(9L);
collector.setMaxFreeSwapSpace(9L);
/** * {@inheritDoc} */ @Override public void reset() { this.memoryInformationData.setCount(0); this.memoryInformationData.setTotalFreePhysMemory(0L); this.memoryInformationData.setMinFreePhysMemory(Long.MAX_VALUE); this.memoryInformationData.setMaxFreePhysMemory(0L); this.memoryInformationData.setTotalFreeSwapSpace(0L); this.memoryInformationData.setMinFreeSwapSpace(Long.MAX_VALUE); this.memoryInformationData.setMaxFreeSwapSpace(0L); this.memoryInformationData.setTotalComittedVirtualMemSize(0L); this.memoryInformationData.setMinComittedVirtualMemSize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedVirtualMemSize(0L); this.memoryInformationData.setTotalUsedHeapMemorySize(0L); this.memoryInformationData.setMinUsedHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxUsedHeapMemorySize(0L); this.memoryInformationData.setTotalComittedHeapMemorySize(0L); this.memoryInformationData.setMinComittedHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedHeapMemorySize(0L); this.memoryInformationData.setTotalUsedNonHeapMemorySize(0L); this.memoryInformationData.setMinUsedNonHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxUsedNonHeapMemorySize(0L); this.memoryInformationData.setTotalComittedNonHeapMemorySize(0L); this.memoryInformationData.setMinComittedNonHeapMemorySize(Long.MAX_VALUE); this.memoryInformationData.setMaxComittedNonHeapMemorySize(0L); Timestamp timestamp = new Timestamp(Calendar.getInstance().getTimeInMillis()); this.memoryInformationData.setTimeStamp(timestamp); }
this.memoryInformationData.setMinFreeSwapSpace(freeSwapSpace); } else if (freeSwapSpace > this.memoryInformationData.getMaxFreeSwapSpace()) { this.memoryInformationData.setMaxFreeSwapSpace(freeSwapSpace);
newMemoryInformationData.setMaxFreeSwapSpace(this.memoryInformationData.getMaxFreeSwapSpace());