Changeset 9292
- Timestamp:
- 05/10/08 01:17:47 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
collector/trunk/src/main/java/ReconcileReferrers.java
r9291 r9292 44 44 45 45 static SimpleDateFormat s_df = new SimpleDateFormat("dd/MM/yyyy:HH:mm:ss Z"); 46 static SimpleDateFormat s_df2 = new SimpleDateFormat("yyyy-MM-dd"); 46 47 47 48 static Map<String, Boolean> s_hostReachable = new HashMap<String, Boolean>(); … … 105 106 static void appendString(StringBuffer sb, String s, boolean first) { 106 107 if (!first) { 107 sb.append(','); 108 } 109 sb.append('"'); 108 sb.append('\t'); 109 } 110 110 sb.append(s); 111 sb.append('"');112 111 } 113 112 114 113 static void appendInteger(StringBuffer sb, int i, boolean first) { 115 114 if (!first) { 116 sb.append(' ,');115 sb.append('\t'); 117 116 } 118 117 sb.append(i); … … 121 120 static void appendBoolean(StringBuffer sb, boolean b, boolean first) { 122 121 if (!first) { 123 sb.append(' ,');122 sb.append('\t'); 124 123 } 125 124 sb.append(b ? 1 : 0); … … 128 127 static void appendDate(StringBuffer sb, Date d, boolean first) { 129 128 if (!first) { 130 sb.append(','); 131 } 132 sb.append('"'); 133 sb.append(s_df.format(d)); 134 sb.append('"'); 129 sb.append('\t'); 130 } 131 sb.append(s_df2.format(d)); 135 132 } 136 133 … … 286 283 try { 287 284 InetAddress ia = InetAddress.getByName(host); 288 reachable = !ia.isAnyLocalAddress() && ia.isReachable(5000);285 reachable = !ia.isAnyLocalAddress();// && ia.isReachable(5000); 289 286 } catch (UnknownHostException e) { 290 } catch (IOException e) {291 287 } 292 288
