|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.peer.community.nof.Arbitrator
public class Arbitrator
Chooses always the request with the greatest balance among the ones passed.
This Accountant
strategy takes no other characteristics of the
consumers into account when choosing which request to fullfill.
Constructor Summary | |
---|---|
Arbitrator()
|
Method Summary | |
---|---|
static RequestEntry |
chooseRemoteRequestToLoseGum(java.util.Collection<RequestEntry> requests)
Choose a request made by a community consumer that should have a gum preempted |
static RequestEntry |
chooseRemoteRequestToReceiveGum(java.util.Collection<RequestEntry> requests)
Choose a request made by a community consumer that deserves to receive a gum |
static RequestEntry |
chooseRequestToLoseGum(java.util.Collection<RequestEntry> requests)
Choose the request with most allocated gums |
static RequestEntry |
chooseRequestToReceiveGum(java.util.Collection<RequestEntry> requests)
Choose the request with less allocated gums |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arbitrator()
Method Detail |
---|
public static RequestEntry chooseRequestToReceiveGum(java.util.Collection<RequestEntry> requests)
requests
- A collection of requests to be considered in the decision
public static RequestEntry chooseRequestToLoseGum(java.util.Collection<RequestEntry> requests)
requests
- A collection of requests to be considered in the decision
public static RequestEntry chooseRemoteRequestToReceiveGum(java.util.Collection<RequestEntry> requests)
requests
- A collection of requests to be considered in the decision
public static RequestEntry chooseRemoteRequestToLoseGum(java.util.Collection<RequestEntry> requests)
requests
- A collection of requests to be considered in the decision
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |