(String url,String properties)
| 147 | } |
| 148 | } |
| 149 | private static boolean eq(String url,String properties) throws Throwable{ |
| 150 | if (dbConnMap.containsKey(url)) { |
| 151 | String valueProperties=(String) dbConnMap.get(url); |
| 152 | if (valueProperties.indexOf(properties)!=-1) { |
| 153 | return true; |
| 154 | }else { |
| 155 | if (valueProperties.length()>2000) { |
| 156 | valueProperties=""; |
| 157 | } |
| 158 | dbConnMap.put(url, valueProperties+"\t"+properties); |
| 159 | return true; |
| 160 | } |
| 161 | } |
| 162 | return false; |
| 163 | } |
| 164 | |
| 165 | public static void add(String url, Properties info) { |
| 166 | try { |