|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antsim.impl.GenericResponseMonitor
Class GenericResponseMonitor
is
Field Summary |
Fields inherited from interface antsim.ResponseMonitor |
NAME |
Constructor Summary | |
GenericResponseMonitor(Factory factory,
String name)
Instantiates a new GenericResponseMonitor . |
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 returning 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 |
Constructor Detail |
public GenericResponseMonitor(Factory factory, String name)
GenericResponseMonitor
.
factory
- the factory to be used to read configuration arguments
and to create other configurable objectsname
- the name that is associated to this instance in the
configuration fileMethod Detail |
public void clear()
clear
in interface Clearable
public void setStatistics(Stats stats)
setStatistics
in interface ResponseMonitor
public void tick()
tick
in interface ResponseMonitor
public void tick(int v)
tick
in interface ResponseMonitor
public void startRequest(RequestId rid)
startRequest
in interface ResponseMonitor
public void returnResources(RequestId rid, Resource[] resources)
returnResources
in interface ResponseListener
rid
- 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 |