/** * returns all of the mail settings, use from nonpooled connections, * connections loaded from properties file in common * * @return */ @Deprecated public static Properties LoadSLAPropertiesNotPooled() { Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); Properties p = loadSLAProperties(con); DBUtils.safeClose(con); return p; }
@Deprecated public static InternetAddress[] GetAllfgsmsAdminsEmailAddressNotPooled() { SetupBundle(); Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); InternetAddress[] sp = getAllfgsmsAdminsEmailAddress(con); DBUtils.safeClose(con); return sp; }
/** * used by qpid agents * * @param uRI * @return */ @Deprecated public static ServicePolicy LoadPolicyNotPooled(String uRI) { SetupBundle(); Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); ServicePolicy sp = loadPolicy(con, uRI); DBUtils.safeClose(con); return sp; }
/** * Returns a list of user's email addresses that are subscribed to a * specific SLA with email actions * * @param guid * @return */ @Deprecated public static InternetAddress[] GetSubscribersNotPooled(String guid) { SetupBundle(); Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); InternetAddress[] sp = getSubscribers(con, guid); DBUtils.safeClose(con); return sp; }
try { if (!pooled) { con = Utility.getConfigurationDB_NONPOOLED_Connection();
PerfCon = Utility.getPerformanceDBConnection(); } else { ConfigCon = Utility.getConfigurationDB_NONPOOLED_Connection(); PerfCon = Utility.getPerformanceDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
/** * used by NT SLA for web services * * @return */ public static List<ServicePolicy> LoadServicePoliciesNotPooled() { Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); SetupBundle(); List<ServicePolicy> r = null; try { r = loadServicePolicies(con); } catch (Exception ex) { log.log(Level.ERROR, bundle.getString("ErrorLoadingPolicy"), ex); } finally { DBUtils.safeClose(con); } if (r == null) { r = new ArrayList<ServicePolicy>(); } return r; }
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
public static SecurityWrapper GetClassLevel(boolean pooled) { Connection con = null; SecurityWrapper c = new SecurityWrapper(); if (pooled) { con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection(); } PreparedStatement cmd =null; ResultSet rs = null; try { cmd = con.prepareStatement("select classification,caveat from globalpolicies;"); rs = cmd.executeQuery(); if (rs.next()) { c.setCaveats(rs.getString("caveat")); c.setClassification(ClassificationType.fromValue(rs.getString("classification"))); } } catch (Exception ex) { log.log(Level.WARN,null, ex); } finally { DBUtils.safeClose(rs); DBUtils.safeClose(cmd); DBUtils.safeClose(con); } return c; }
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
String url = IpAddressUtility.modifyURL(originalurl, true); try { Connection con = Utility.getConfigurationDB_NONPOOLED_Connection(); AuxHelper.CheckStatisticalPolicyAndCreate(url, con, false, AuxHelper.UNSPECIFIED, SLACommon.GetHostName()); con.close();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
con = Utility.getConfigurationDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection();
PerfCon = Utility.getPerformanceDBConnection(); } else { ConfigCon = Utility.getConfigurationDB_NONPOOLED_Connection(); PerfCon = Utility.getPerformanceDB_NONPOOLED_Connection();
perf = Utility.getPerformanceDBConnection(); } else { con = Utility.getConfigurationDB_NONPOOLED_Connection(); perf = Utility.getPerformanceDB_NONPOOLED_Connection();