+ private LinkedList<DomainPingConfiguration> configs = null;
+
+ public List<DomainPingConfiguration> getConfiguredPings() throws GigiApiException {
+ LinkedList<DomainPingConfiguration> configs = this.configs;
+ if (configs == null) {
+ try {
+ configs = new LinkedList<>();
+ PreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT id FROM pingconfig WHERE domainid=?");
+ ps.setInt(1, id);
+ ResultSet rs = ps.executeQuery();
+ while (rs.next()) {
+ configs.add(DomainPingConfiguration.getById(rs.getInt(1)));
+ }
+ rs.close();
+ this.configs = configs;
+ } catch (SQLException e) {
+ throw new GigiApiException(e);
+ }
+
+ }
+ return Collections.unmodifiableList(configs);
+ }
+
+ public void addPing(PingType ssl, String config) throws GigiApiException {