|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ResourceSpreader
hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.MaxMinFairSpreader
hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.MaxMinProvider
public class MaxMinProvider
This class is part of the unified resource consumption model of DISSECT-CF. This class offers provider (e.g., the source of the resource extraction) specific behavior for the MaxMinFairness resource spreading technique. This is a generic provider. The implementation does not assume any particular use (e.g. network/cpu). It can even be used to model usual resource bottlenecks in computing environments (e.g. memory bandwidth, GPU).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ResourceSpreader |
---|
ResourceSpreader.FreqSyncer |
Field Summary |
---|
Fields inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ResourceSpreader |
---|
hashCounter, lastNotifTime, negligableProcessing, perTickProcessingPower, toBeAdded, toBeRemoved, underProcessing, underProcessingLen |
Constructor Summary | |
---|---|
MaxMinProvider(double initialProcessing)
Constructs a generic Max Min fairness based resource producer. |
Method Summary | |
---|---|
protected ResourceSpreader |
getCounterPart(ResourceConsumption con)
Determines what is the consumer this provider is connected with via the resource consumption specified. |
protected ResourceSpreader |
getSamePart(ResourceConsumption con)
Determines what is the provider referred by the resource consumption specified. |
protected boolean |
isConsumer()
Tells the world that this particular resource spreader is a provider. |
protected double |
processSingleConsumption(ResourceConsumption con,
long ticksPassed)
Uses the resource consumption's provider related processing operation to actually offer the resources to those who are in need of them (e.g. |
String |
toString()
provides some textual representation of this provider, good for debugging and tracing |
protected void |
updateConsumptionLimit(ResourceConsumption con,
double limit)
Translates the consumption limit update request to actually changing a field in the resource consumption that is related to providers. |
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.MaxMinFairSpreader |
---|
singleGroupwiseFreqUpdater |
Methods inherited from class hu.mta.sztaki.lpds.cloud.simulator.iaas.resourcemodel.ResourceSpreader |
---|
cancelConsumption, getCurrentPowerBehavior, getHashandIncCounter, getPerTickProcessingPower, getSyncer, getTotalProcessed, hashCode, isAcceptableConsumption, registerConsumption, removeTheseConsumptions, setCurrentPowerBehavior, setPerTickProcessingPower, subscribePowerBehaviorChangeEvents, unsubscribePowerBehaviorChangeEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MaxMinProvider(double initialProcessing)
initialProcessing
- determines the amount of resources this producer could offer
in a single tickMethod Detail |
---|
protected void updateConsumptionLimit(ResourceConsumption con, double limit)
updateConsumptionLimit
in class MaxMinFairSpreader
con
- the resource consumption object to be updated with the limit
valuelimit
- the limit value to be propagated to the resource consumption
object's relevant (i.e. provider/consumer specific) fieldprotected double processSingleConsumption(ResourceConsumption con, long ticksPassed)
processSingleConsumption
in class ResourceSpreader
con
- the resource consumption to be realignedticksPassed
- the time passed since the last processing request
protected ResourceSpreader getCounterPart(ResourceConsumption con)
getCounterPart
in class ResourceSpreader
con
- The consumption object for which we would like to know the
other party that participates in the processing with us.
protected ResourceSpreader getSamePart(ResourceConsumption con)
getSamePart
in class ResourceSpreader
con
- The consumption object on which this call will operate
protected boolean isConsumer()
isConsumer
in class ResourceSpreader
public String toString()
toString
in class ResourceSpreader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |