EMAIL, DNS, HTTP, SSL;
}
- int id;
+ private int id;
- Domain target;
+ private Domain target;
- PingType type;
+ private PingType type;
- String info;
+ private String info;
private DomainPingConfiguration(int id) throws SQLException {
PreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT id, domainid, type, info FROM pingconfig WHERE id=?");
return res;
}
+ public void requestReping() {
+ try {
+ PreparedStatement ps = DatabaseConnection.getInstance().prepare("UPDATE pingconfig set reping='y' WHERE id=?");
+ ps.setInt(1, id);
+ ps.execute();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
}