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

Field Summary
private static AMIQueryLog aql
          Self instance used for signleton pattern
(package private) static Vector vPacketList
           
 
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
 

Field Detail

vPacketList

static Vector vPacketList

aql

private static AMIQueryLog aql
Self instance used for signleton pattern
Constructor Detail

AMIQueryLog

private AMIQueryLog()
Default constructor
Method Detail

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