ami
Class AMIQueryLog
java.lang.Object
|
+--ami.AMIQueryLog
- class AMIQueryLog
- extends Object
Stores output and input packets ids to drop looping packets
Singleton
- Version:
- 1.0
- Author:
- Bertrand Florat
Constructor Summary |
private |
AMIQueryLog()
Default constructor |
Method Summary |
(package private) static void |
addLog(String sID)
add an entry at transmission |
static AMIQueryLog |
getInstance()
Return a self instance
Implementation of the singleton pattern |
(package private) static boolean |
isLogged(String sID)
check if a query is logged |
(package private) static void |
removeLog(String sID)
Drop an ID |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
vPacketList
static Vector vPacketList
aql
private static AMIQueryLog aql
- Self instance used for signleton pattern
AMIQueryLog
private AMIQueryLog()
- Default constructor
getInstance
public static AMIQueryLog getInstance()
- Return a self instance
Implementation of the singleton pattern
isLogged
static boolean isLogged(String sID)
- check if a query is logged
- Parameters:
sID
- the arid or the iaics- Returns:
- true if logged
addLog
static void addLog(String sID)
- add an entry at transmission
- Parameters:
sID
- the arid or the iaics
removeLog
static void removeLog(String sID)
- Drop an ID
- Parameters:
sID
- the iaics or arid