public long getUddiPublishInterval() { try { KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Interval"); if (p != null) { String t = p.getKeyNameValue().getPropertyValue(); long l = Long.parseLong(t); return l; } } catch (Exception ex) { } return 24 * 60 * 60 * 1000; }
/** * convenience wrapper * * @param key * @param name * @param value * @return */ public static KeyNameValue newKeyNameValue(String key, String name, String value) { KeyNameValue x = new KeyNameValue(); x.setPropertyKey(key); x.setPropertyName(name); x.setPropertyValue(value); return x; }
/** * Create an instance of {@link KeyNameValue } * */ public KeyNameValue createKeyNameValue() { return new KeyNameValue(); }
try { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(true, "StatisticsAggregator", "Periods"); String[] items = GetPropertiesFromDB.getKeyNameValue().getPropertyValue().split(","); for (int i = 0; i < items.length; i++) { long l = Long.parseLong(items[i]);
KeyNameValueEnc k = new KeyNameValueEnc(); k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Constants.CHARSET)); k.setKeyNameValue(p); items.add(k);
KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ConnectionURL"); if (p != null && p.getKeyNameValue() != null) { ConnectionURL = p.getKeyNameValue().getPropertyValue();
if (rs.next()) { k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Constants.CHARSET)); k.setKeyNameValue(p);
if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null && GetPropertiesFromDB.getKeyNameValue().getPropertyValue() != null) { try { if (GetPropertiesFromDB.isShouldEncrypt()) { threshold = Long.parseLong(Utility.DE(GetPropertiesFromDB.getKeyNameValue().getPropertyValue())); } else { threshold = Long.parseLong(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null && GetPropertiesFromDB.getKeyNameValue().getPropertyValue() != null) { try { NTSLAInterval = Long.parseLong(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); } catch (Exception x) {
KeyNameValueEnc k = new KeyNameValueEnc(); k.setShouldEncrypt(rs.getBoolean("isencrypted")); KeyNameValue p = new KeyNameValue(); p.setPropertyKey(rs.getString("keycol")); p.setPropertyName(rs.getString("namecol")); p.setPropertyValue(new String(rs.getBytes("valuecol"), Charset.forName("UTF-8"))); k.setKeyNameValue(p); items.add(k);
try { KeyNameValueEnc GetPropertiesFromDB = DBSettingsLoader.GetPropertiesFromDB(pooled, "StatisticsAggregator", "Periods"); String[] items = GetPropertiesFromDB.getKeyNameValue().getPropertyValue().split(","); for (int i = 0; i < items.length; i++) { long l = Long.parseLong(items[i]);
if (d != null && d.getKeyNameValue() != null) { try { ret.setUDDIPublishRate(df.newDuration(Long.parseLong(d.getKeyNameValue().getPropertyValue()))); } catch (Exception ex) { ret.setUDDIPublishRate(df.newDuration(30 * 60 * 100));
KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ConnectionURL"); if (p != null && p.getKeyNameValue() != null) { ConnectionURL = p.getKeyNameValue().getPropertyValue(); String t = p.getKeyNameValue().getPropertyValue(); if (!Utility.stringIsNullOrEmpty(t)) { Topic = t.equalsIgnoreCase("topic"); Destination = p.getKeyNameValue().getPropertyValue(); INITIAL_CONTEXT_FACTORY = p.getKeyNameValue().getPropertyValue(); username = p.getKeyNameValue().getPropertyValue(); } else { username = null; encryptedpassword = p.getKeyNameValue().getPropertyValue(); } else { encryptedpassword = null; truststorepass = p.getKeyNameValue().getPropertyValue(); } else { truststorepass = null; truststore = p.getKeyNameValue().getPropertyValue(); } else { truststore = null; keystore = p.getKeyNameValue().getPropertyValue();
if (GetPropertiesFromDB != null && GetPropertiesFromDB.getKeyNameValue() != null) { try { run = Boolean.parseBoolean(GetPropertiesFromDB.getKeyNameValue().getPropertyValue()); } catch (Exception ex) {
if (d != null && d.getKeyNameValue() != null) { try { ignoreSSL = Boolean.parseBoolean(d.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ignoreSSL = false; truststore = tmp + d.getKeyNameValue().getPropertyValue(); truststorepass = d.getKeyNameValue().getPropertyValue(); keystore = tmp + d.getKeyNameValue().getPropertyValue(); keystorepass = d.getKeyNameValue().getPropertyValue();
KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(pooled, KEY, "ContextProviderUrl"); if (p != null && p.getKeyNameValue() != null) { ContextProviderUrl = p.getKeyNameValue().getPropertyValue(); String t = p.getKeyNameValue().getPropertyValue(); if (!Utility.stringIsNullOrEmpty(t)) { Topic = t.equalsIgnoreCase("topic"); Destination = p.getKeyNameValue().getPropertyValue(); ConnectionFactoryLookup = p.getKeyNameValue().getPropertyValue(); INITIAL_CONTEXT_FACTORY = p.getKeyNameValue().getPropertyValue(); URL_PKG_PREFIXES = p.getKeyNameValue().getPropertyValue(); username = p.getKeyNameValue().getPropertyValue(); } else { username = null; encryptedpassword = p.getKeyNameValue().getPropertyValue(); } else { encryptedpassword = null;
brokerurl = p.getKeyNameValue().getPropertyValue(); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); } else { username = null; if (p != null && p.getKeyNameValue() != null) { encryptedpassword = p.getKeyNameValue().getPropertyValue(); } else { encryptedpassword = if (p != null && p.getKeyNameValue() != null) { configuredWSN_DIALECT = p.getKeyNameValue().getPropertyValue(); } else { configuredWSN_DIALECT = null; topic = p.getKeyNameValue().getPropertyValue(); } else { topic = null; if (p != null && p.getKeyNameValue() != null) { try { truststore = p.getKeyNameValue().getPropertyValue(); } catch (Exception ex) {
KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Username"); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); password = p.getKeyNameValue().getPropertyValue(); ClientCertRequired = Boolean.parseBoolean(p.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ClientCertRequired = false; t = p.getKeyNameValue().getPropertyValue(); try { uddiauth = AuthMode.valueOf(t); inquiryurl = p.getKeyNameValue().getPropertyValue(); publishurl = p.getKeyNameValue().getPropertyValue(); securityurl = p.getKeyNameValue().getPropertyValue(); p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "defaults", "keystore"); if (p != null && p.getKeyNameValue() != null) { keystore = jbossconfigpath + p.getKeyNameValue().getPropertyValue(); keystorepass = p.getKeyNameValue().getPropertyValue(); truststore = jbossconfigpath + p.getKeyNameValue().getPropertyValue(); truststorepass = p.getKeyNameValue().getPropertyValue();
KeyNameValueEnc p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "UddiPublisher", "Username"); if (p != null && p.getKeyNameValue() != null) { username = p.getKeyNameValue().getPropertyValue(); password = p.getKeyNameValue().getPropertyValue(); ClientCertRequired = Boolean.parseBoolean(p.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { ClientCertRequired = false; t = p.getKeyNameValue().getPropertyValue(); try { uddiauth = AuthMode.valueOf(t); inquiryurl = p.getKeyNameValue().getPropertyValue(); publishurl = p.getKeyNameValue().getPropertyValue(); securityurl = p.getKeyNameValue().getPropertyValue(); p = DBSettingsLoader.GetPropertiesFromDB(isPooled, "defaults", "keystore"); if (p != null && p.getKeyNameValue() != null) { keystore = jbossconfigpath + p.getKeyNameValue().getPropertyValue(); keystorepass = p.getKeyNameValue().getPropertyValue(); truststore = jbossconfigpath + p.getKeyNameValue().getPropertyValue(); truststorepass = p.getKeyNameValue().getPropertyValue();
} else { try { res.setReportingFrequency(df.newDuration(Long.parseLong(prop.getKeyNameValue().getPropertyValue()))); } catch (Exception ex) { res.setReportingFrequency(df.newDuration(30000));
retention = Long.parseLong(d.getKeyNameValue().getPropertyValue()); } catch (Exception ex) { log.log(Level.WARN, String.format(SLACommon.getBundleString("ErrorUnableToParse"), "defaultRetention" + p.value(), "Long"), ex);