|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ants.gnutant.GnutantResponseMonitor
Listens for responses from ReplyGnutant and log the
statistics. It also initiates a download phase of a certain
percentage of the found documents.
| Field Summary | |
static String |
PAR_DOWNLOADPROB
Parameter name used to read the percentage of documents to download upon receiving a set of documents references. |
| Fields inherited from interface antsim.ResponseMonitor |
NAME |
| Constructor Summary | |
GnutantResponseMonitor(Factory factory,
String name)
Creates a new custom Gnutant response monitor. |
|
| Method Summary | |
void |
clear()
Restores the object to its initial state. |
void |
complete()
Upcall method used to notify this listener that the given request has finished to return resources. |
void |
returnResources(RequestId rid,
Resource[] resources)
Upcall method used to notify this listener that the given request has returned the specified set of resources. |
void |
setStatistics(Stats stats)
|
void |
startRequest(RequestId rid)
Must be invoked prior to invoking a request on a nest, to ensure that the given request is stored to enable lookup on responses. |
void |
tick()
|
void |
tick(int v)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PAR_DOWNLOADPROB
| Constructor Detail |
public GnutantResponseMonitor(Factory factory,
String name)
| Method Detail |
public void clear()
clear in interface Clearablepublic void setStatistics(Stats stats)
setStatistics in interface ResponseMonitorpublic void tick()
tick in interface ResponseMonitorpublic void tick(int v)
tick in interface ResponseMonitorpublic void startRequest(RequestId rid)
startRequest in interface ResponseMonitor
public void returnResources(RequestId rid,
Resource[] resources)
returnResources in interface ResponseListenerrid - the request identifier for the returned resources.resources - the resources found.public void complete()
complete in interface ResponseListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||