public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public synchronized static int getUsers() { long max_think_time=Configure.getInstance().counter_recentuser_valid_ms; int v = 0; long now = System.currentTimeMillis(); try { Enumeration<LongLongLinkedEntry> en = users.entries(); while (en.hasMoreElements()) { LongLongLinkedEntry e = en.nextElement(); if (now - e.getValue() >max_think_time) { users.remove(e.getKey()); } else { v++; } } } catch (Throwable t) { Logger.println("A114", "METER-USERS" + t.toString()); } return v; }
public synchronized static int getUsers() { long max_think_time=Configure.getInstance().counter_recentuser_valid_ms; int v = 0; long now = System.currentTimeMillis(); try { Enumeration<LongLongLinkedEntry> en = users.entries(); while (en.hasMoreElements()) { LongLongLinkedEntry e = en.nextElement(); if (now - e.getValue() >max_think_time) { users.remove(e.getKey()); } else { v++; } } } catch (Throwable t) { Logger.println("A114", "METER-USERS" + t.toString()); } return v; }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toFormatString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{\n"); while (it.hasMoreElements()) { LongLongLinkedEntry e = (LongLongLinkedEntry) it.nextElement(); buf.append("\t").append(e.getKey() + "=" + e.getValue()).append("\n"); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(); Enumeration it = entries(); buf.append("{"); for (int i = 0; it.hasMoreElements(); i++) { LongLongLinkedEntry e = (LongLongLinkedEntry) (it.nextElement()); if (i > 0) buf.append(", "); buf.append(e.getKey() + "=" + e.getValue()); } buf.append("}"); return buf.toString(); }
public synchronized static int getUsers() { long max_think_time=Configure.getInstance().counter_recentuser_valid_ms; int v = 0; long now = System.currentTimeMillis(); try { Enumeration<LongLongLinkedEntry> en = users.entries(); while (en.hasMoreElements()) { LongLongLinkedEntry e = en.nextElement(); if (now - e.getValue() >max_think_time) { users.remove(e.getKey()); } else { v++; } } } catch (Throwable t) { Logger.println("A114", "METER-USERS" + t.toString()); } return v; }