lbg.peer.strategy.scheduling.consumption
Class MTBCConsumptionScheduling
java.lang.Object
lbg.peer.strategy.scheduling.consumption.CommonConsumptionScheduling
lbg.peer.strategy.scheduling.consumption.MTBCConsumptionScheduling
- All Implemented Interfaces:
- ConsumptionSchedulingPolicy
public class MTBCConsumptionScheduling
- extends CommonConsumptionScheduling
- implements ConsumptionSchedulingPolicy
Consumption scheduling based on MTBC ranking.
- Author:
- Cyril Briquet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MTBCConsumptionScheduling
public MTBCConsumptionScheduling(Peer managed_peer,
Scheduler scheduler)
throws GridException
- Throws:
GridException
toString
public java.lang.String toString()
- Overrides:
toString
in class CommonConsumptionScheduling
rankSuppliers
protected Ranking rankSuppliers(ConsumptionGrantsContainer c_g,
RequestContainer rc)
throws GridException
- Rank Suppliers.
- Specified by:
rankSuppliers
in class CommonConsumptionScheduling
- Parameters:
c_g
- collected Consumption Grants containerrc
- target Task container
- Returns:
- Suppliers Ranking
- Throws:
GridException
- if a problem occured while ranking Suppliers
getLocalQueueCursor
protected LocalQueueCursor getLocalQueueCursor()
- Local Queue Cursor accessor.
- Specified by:
getLocalQueueCursor
in class CommonConsumptionScheduling
- Returns:
- Local Queue Cursor, or null if none has been defined
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.