|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMIResultTable
Manages results for an AR
Singleton
Field Summary | |
private static AMIResultTable |
art
Self instance used for signleton pattern |
static AMISubject |
asub
A subject ( see observer pattern ) |
private static Hashtable |
h
The hashtable key is arid; the AR id and it contains an Object array with: max (Integer) : max nb of results for this AR retrieved (Integer) : nb of restrieved results for this AR results (Vector) : results themselves |
Constructor Summary | |
private |
AMIResultTable()
Default constructor |
Method Summary | |
(package private) static boolean |
addResult(String sArid,
AMIPublicKey apk)
Add a result |
(package private) static boolean |
addSearch(String sArid,
Integer iMax)
Notify a search |
(package private) static boolean |
contains(String sArid)
Returns true if the search exists |
(package private) static boolean |
dropSearch(String sArid)
Drop a search |
static AMIResultTable |
getInstance()
Return an instance of the Result Table Implementation of the singleton pattern |
static Vector |
getResult(String sArid)
Returns the existing results for a given AR. |
static String |
getString()
Returns a string representation of the result table |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static Hashtable h
private static AMIResultTable art
public static AMISubject asub
Constructor Detail |
private AMIResultTable()
Method Detail |
public static AMIResultTable getInstance()
Implementation of the singleton pattern
static boolean addSearch(String sArid, Integer iMax)
sArid
- the AR idiMax
- max number of replies for this ARstatic boolean addResult(String sArid, AMIPublicKey apk)
sArid
- AR idapk
- found peer pustatic boolean dropSearch(String sArid)
sArid
- AR idpublic static Vector getResult(String sArid)
static boolean contains(String sArid)
public static String getString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |