}
}
}
public MemoryStats getMemoryStats() throws SimpleMessageException {
MemoryStats stats = new MemoryStats();
stats.setMaxMemory(Runtime.getRuntime().maxMemory());
stats.setTotalMemory(Runtime.getRuntime().totalMemory());
stats.setFreeMemory(Runtime.getRuntime().freeMemory());
return stats;
}