private static Node getNodeByRs(final ResultSet rs) throws SQLException {
        Node node = new Node();
        node.setIdentity(rs.getString("identity"));
        node.setClusterName(rs.getString("cluster_name"));
        node.setNodeType(NodeType.valueOf(rs.getString("node_type")));
        node.setIp(rs.getString("ip"));
        node.setPort(rs.getInt("port"));
        node.setGroup(rs.getString("node_group"));
        node.setCreateTime(rs.getLong("create_time"));
        node.setThreads(rs.getInt("threads"));
        node.setAvailable(rs.getInt("available") == 1);
        node.setHostName(rs.getString("host_name"));
        node.setHttpCmdPort(rs.getInt("http_cmd_port"));
        return node;
    }
@author Robert HG (254963746@qq.com) on 3/9/16.
lts-admin/src/main/java/com/github/ltsopensource/admin/access/RshHandler.java