public static void sendHeartBeat(ObjectPack p) { udpCollect.add(p); if (conf._log_udp_object_enabled) { Logger.println(p.toString()); } } private static IntLinkedSet webNameTable = new IntLinkedSet().setMax(1000);
public static void sendHeartBeat(ObjectPack p) { udpCollect.add(p); if (conf._log_udp_object_enabled) { Logger.println(p.toString()); } } private static IntLinkedSet webNameTable = new IntLinkedSet().setMax(1000);
public static void sendObjName(int hash, String objName) { if (objNameSet.contains(hash)) { return ; } objNameSet.put(hash); udpCollect.add(new TextPack(TextTypes.OBJECT, hash, objName)); } private static IntLinkedSet referer = new IntLinkedSet().setMax(1000);
public static int sendStackElement(StackTraceElement ste) { int hash = ste.hashCode(); if (stackElement.contains(hash)) { return hash; } stackElement.put(hash); udpCollect.add(new TextPack(TextTypes.STACK_ELEMENT, hash, ste.toString())); return hash; } }
public static void sendObjName(int hash, String objName) { if (objNameSet.contains(hash)) { return ; } objNameSet.put(hash); udpCollect.add(new TextPack(TextTypes.OBJECT, hash, objName)); } private static IntLinkedSet referer = new IntLinkedSet().setMax(1000);
public static int sendStackElement(StackTraceElement ste) { int hash = ste.hashCode(); if (stackElement.contains(hash)) { return hash; } stackElement.put(hash); udpCollect.add(new TextPack(TextTypes.STACK_ELEMENT, hash, ste.toString())); return hash; } }
public static int sendUserAgent(String text) { int hash = HashUtil.hash(text); if (userAgent.contains(hash)) { return hash; } userAgent.put(hash); udpCollect.add(new TextPack(TextTypes.USER_AGENT, hash, text)); return hash; } private static IntLinkedSet methodName = new IntLinkedSet().setMax(10000);
public static int sendWebName( String web) { int hash = HashUtil.hash(web); if (webNameTable.contains(hash)) { return hash; } webNameTable.put(hash); udpCollect.add(new TextPack(TextTypes.WEB, hash, web)); return hash; }
public static int sendApicall( String name) { int hash = HashUtil.hash(name); if (apicall.contains(hash)) { return hash; } apicall.put(hash); udpCollect.add(new TextPack(TextTypes.APICALL, hash, name)); return hash; } static Configure conf = Configure.getInstance();
public static int sendHashedMessage(String text) { int hash = HashUtil.hash(text); if (hashMessage.contains(hash)) { return hash; } hashMessage.put(hash); udpCollect.add(new TextPack(TextTypes.HASH_MSG, hash, text)); return hash; }
public static int sendMethodName(String name) { int hash = HashUtil.hash(name); if (methodName.contains(hash)) { return hash; } methodName.put(hash); udpCollect.add(new TextPack(TextTypes.METHOD, hash, name)); return hash; } private static IntLinkedSet apicall = new IntLinkedSet().setMax(10000);
public static int sendLogin( String loginName) { int hash = HashUtil.hash(loginName); if (loginTable.contains(hash)) { return hash; } loginTable.put(hash); udpCollect.add(new TextPack(TextTypes.LOGIN, hash, loginName)); return hash; } public static void reset() {
public static int sendDesc( String desc) { int hash = HashUtil.hash(desc); if (descTable.contains(hash)) { return hash; } descTable.put(hash); udpCollect.add(new TextPack(TextTypes.DESC, hash, desc)); return hash; } private static IntLinkedSet loginTable = new IntLinkedSet().setMax(10000);
public static int sendGroup(String text) { int hash = HashUtil.hash(text); if (groupAgent.contains(hash)) { return hash; } groupAgent.put(hash); udpCollect.add(new TextPack(TextTypes.GROUP, hash, text)); return hash; } private static IntLinkedSet hashMessage = new IntLinkedSet().setMax(10000);
public static int sendDesc( String desc) { int hash = HashUtil.hash(desc); if (descTable.contains(hash)) { return hash; } descTable.put(hash); udpCollect.add(new TextPack(TextTypes.DESC, hash, desc)); return hash; } private static IntLinkedSet loginTable = new IntLinkedSet().setMax(10000);
public static int sendHashedMessage(String text) { int hash = HashUtil.hash(text); if (hashMessage.contains(hash)) { return hash; } hashMessage.put(hash); udpCollect.add(new TextPack(TextTypes.HASH_MSG, hash, text)); return hash; }
public static int sendMethodName(String name) { int hash = HashUtil.hash(name); if (methodName.contains(hash)) { return hash; } methodName.put(hash); udpCollect.add(new TextPack(TextTypes.METHOD, hash, name)); return hash; } private static IntLinkedSet apicall = new IntLinkedSet().setMax(10000);
public static int sendUserAgent(String text) { int hash = HashUtil.hash(text); if (userAgent.contains(hash)) { return hash; } userAgent.put(hash); udpCollect.add(new TextPack(TextTypes.USER_AGENT, hash, text)); return hash; } private static IntLinkedSet methodName = new IntLinkedSet().setMax(10000);
public static int sendError( String message) { int hash = HashUtil.hash(message); if (errText.contains(hash)) { return hash; } errText.put(hash); udpCollect.add(new TextPack(TextTypes.ERROR, hash, message)); return hash; } private static IntLinkedSet descTable = new IntLinkedSet().setMax(1000);
public static int sendGroup(String text) { int hash = HashUtil.hash(text); if (groupAgent.contains(hash)) { return hash; } groupAgent.put(hash); udpCollect.add(new TextPack(TextTypes.GROUP, hash, text)); return hash; } private static IntLinkedSet hashMessage = new IntLinkedSet().setMax(10000);