|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.peer.strategy.scheduling.consumption.CommonConsumptionScheduling
lbg.peer.strategy.scheduling.consumption.RandomConsumptionScheduling
public class RandomConsumptionScheduling
Random use of Consumption Grants.
Constructor Summary | |
---|---|
RandomConsumptionScheduling(Peer managed_peer,
Scheduler scheduler)
|
Method Summary | |
---|---|
protected LocalQueueCursor |
getLocalQueueCursor()
Local Queue Cursor accessor. |
protected Ranking |
rankSuppliers(ConsumptionGrantsContainer c_g,
RequestContainer rc)
Rank Suppliers. |
int |
scheduleConsumptionTasks()
ConsumptionSchedulingPolicy implementation. |
java.lang.String |
toString()
|
Methods inherited from class lbg.peer.strategy.scheduling.consumption.CommonConsumptionScheduling |
---|
assertConsumptionGrantsAvailability, scheduleFirstConsumptionTask, scheduleNextConsumptionTask |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomConsumptionScheduling(Peer managed_peer, Scheduler scheduler) throws GridException
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class CommonConsumptionScheduling
public int scheduleConsumptionTasks() throws GridException
scheduleConsumptionTasks
in interface ConsumptionSchedulingPolicy
scheduleConsumptionTasks
in class CommonConsumptionScheduling
GridException
- if an error occurs
while using Consumption Grants to schedule Consumption Tasksprotected Ranking rankSuppliers(ConsumptionGrantsContainer c_g, RequestContainer rc) throws GridException
Note: dummy implementation.
rankSuppliers
in class CommonConsumptionScheduling
c_g
- collected Consumption Grants containerrc
- target Task container
GridException
- if a problem occured while ranking Suppliersprotected LocalQueueCursor getLocalQueueCursor()
Note: dummy implementation.
getLocalQueueCursor
in class CommonConsumptionScheduling
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.