|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.im.v2i.RequestHandler.BatchModeRequestHandler
public class BatchModeRequestHandler
The batch mode request handler.
| Nested Class Summary | |
|---|---|
static class |
BatchModeRequestHandler.IndexedProposal
A proposal with a unique ID. |
static class |
BatchModeRequestHandler.RequestStatCollector
The Request statistic collector. |
| Constructor Summary | |
|---|---|
BatchModeRequestHandler(ReorderingStrategy reorderingStrategy)
Create a batch mode request handler. |
|
BatchModeRequestHandler(ReorderingStrategy reorderingStrategy,
BatchModeRequestHandler.RequestStatCollector requestSC)
Create a batch mode request handler. |
|
| Method Summary | |
|---|---|
void |
act(double timeStep)
Let the request handler to act for a given time period. |
StatCollector<?> |
getStatCollector()
Get the statistic collector. |
void |
printQueue()
Print the queue. |
void |
processRequestMsg(Request msg)
Process the request message. |
void |
setBasePolicyCallback(BasePolicyCallback basePolicy)
Set the base policy call-back. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchModeRequestHandler(ReorderingStrategy reorderingStrategy)
reorderingStrategy - the reorder strategy
public BatchModeRequestHandler(ReorderingStrategy reorderingStrategy,
BatchModeRequestHandler.RequestStatCollector requestSC)
reorderingStrategy - the reorder strategyrequestSC - the request statistic collector| Method Detail |
|---|
public void setBasePolicyCallback(BasePolicyCallback basePolicy)
setBasePolicyCallback in interface RequestHandlerbasePolicy - the base policy's call-backpublic void act(double timeStep)
act in interface RequestHandlertimeStep - the time periodpublic void processRequestMsg(Request msg)
processRequestMsg in interface RequestHandlermsg - the request messagepublic StatCollector<?> getStatCollector()
getStatCollector in interface RequestHandlerpublic void printQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||