@Override
        public List<JVMMemoryDataPo> handle(ResultSet rs) throws SQLException {
            List<JVMMemoryDataPo> list = new ArrayList<JVMMemoryDataPo>();

            while (rs.next()) {
                JVMMemoryDataPo po = new JVMMemoryDataPo();
                po.setTimestamp(rs.getLong("timestamp"));

                po.setHeapMemoryCommitted(rs.getLong("heap_memory_committed"));
                po.setHeapMemoryInit(rs.getLong("heap_memory_init"));
                po.setHeapMemoryMax(rs.getLong("heap_memory_max"));
                po.setHeapMemoryUsed(rs.getLong("heap_memory_used"));
                po.setNonHeapMemoryCommitted(rs.getLong("non_heap_memory_committed"));
                po.setNonHeapMemoryInit(rs.getLong("non_heap_memory_init"));
                po.setNonHeapMemoryMax(rs.getLong("non_heap_memory_max"));
                po.setNonHeapMemoryUsed(rs.getLong("non_heap_memory_used"));
                po.setPermGenCommitted(rs.getLong("perm_gen_committed"));
                po.setPermGenInit(rs.getLong("perm_gen_init"));
                po.setPermGenMax(rs.getLong("perm_gen_max"));
                po.setPermGenUsed(rs.getLong("perm_gen_used"));
                po.setOldGenCommitted(rs.getLong("old_gen_committed"));
                po.setOldGenInit(rs.getLong("old_gen_init"));
                po.setOldGenMax(rs.getLong("old_gen_max"));
                po.setOldGenUsed(rs.getLong("old_gen_used"));
                po.setEdenSpaceCommitted(rs.getLong("eden_space_committed"));
                po.setEdenSpaceInit(rs.getLong("eden_space_init"));
                po.setEdenSpaceMax(rs.getLong("eden_space_max"));
                po.setEdenSpaceUsed(rs.getLong("eden_space_used"));
                po.setSurvivorCommitted(rs.getLong("survivor_committed"));
                po.setSurvivorInit(rs.getLong("survivor_init"));
                po.setSurvivorMax(rs.getLong("survivor_max"));
                po.setSurvivorUsed(rs.getLong("survivor_used"));

                list.add(po);
            }
            return list;
        }
@author Robert HG (254963746@qq.com) on 3/9/16.
lts-admin/src/main/java/com/github/ltsopensource/admin/access/RshHandler.java