Package com.alibaba.druid.support.monitor.entity

Examples of com.alibaba.druid.support.monitor.entity.MonitorCluster


            JdbcUtils.close(conn);
        }
    }

    public void insertClusterIfNotExits(String domain, String app, String cluster) throws SQLException {
        MonitorCluster monitorApp = findCluster(domain, app, cluster);
        if (monitorApp != null) {
            return;
        }

        String sql = "insert druid_cluster (domain, app, cluster) values (?, ?, ?)";
View Full Code Here


            JdbcUtils.close(conn);
        }
    }

    private MonitorCluster readCluster(ResultSet rs) throws SQLException {
        MonitorCluster app = new MonitorCluster();

        app.setId(rs.getLong(1));
        app.setDomain(rs.getString(2));
        app.setApp(rs.getString(3));
        app.setCluster(rs.getString(4));

        return app;
    }
View Full Code Here

            JdbcUtils.close(conn);
        }
    }

    public void insertClusterIfNotExits(String domain, String app, String cluster) throws SQLException {
        MonitorCluster monitorApp = findCluster(domain, app, cluster);
        if (monitorApp != null) {
            return;
        }

        String sql = "insert druid_cluster (domain, app, cluster) values (?, ?, ?)";
View Full Code Here

            JdbcUtils.close(conn);
        }
    }

    private MonitorCluster readCluster(ResultSet rs) throws SQLException {
        MonitorCluster app = new MonitorCluster();

        app.setId(rs.getLong(1));
        app.setDomain(rs.getString(2));
        app.setApp(rs.getString(3));
        app.setCluster(rs.getString(4));

        return app;
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.monitor.entity.MonitorCluster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.