|
||||||||||
| 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.MaxMinConsumer
public class MaxMinConsumer
This class is part of the unified resource consumption model of DISSECT-CF. This class provides consumer (e.g., the beneficiary of the consumption of the resources of a provider) specific behavior for the MaxMinFairness resource spreading technique. This is a generic consumer. 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 | |
|---|---|
MaxMinConsumer(double initialProcessing)
Constructs a generic Max Min fairness based resource consumer. |
|
| Method Summary | |
|---|---|
protected ResourceSpreader |
getCounterPart(ResourceConsumption con)
Determines what is the provider this consumer is connected with via the resource consumption specified. |
protected ResourceSpreader |
getSamePart(ResourceConsumption con)
Determines what is the consumer referred by the resource consumption specified. |
protected boolean |
isConsumer()
Tells the world that this particular resource spreader is a consumer. |
protected double |
processSingleConsumption(ResourceConsumption con,
long ticksPassed)
Uses the resource consumption's consumer related processing operation to actually use the results of a resource consumption (e.g. |
String |
toString()
provides some textual representation of this consumer, 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 consumers. |
| 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 MaxMinConsumer(double initialProcessing)
initialProcessing - determines the amount of resources this consumer could utilize
in a single tick| Method Detail |
|---|
protected void updateConsumptionLimit(ResourceConsumption con,
double limit)
updateConsumptionLimit in class MaxMinFairSpreadercon - 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 ResourceSpreader getCounterPart(ResourceConsumption con)
getCounterPart in class ResourceSpreadercon - 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 ResourceSpreadercon - The consumption object on which this call will operate
protected double processSingleConsumption(ResourceConsumption con,
long ticksPassed)
processSingleConsumption in class ResourceSpreadercon - the resource consumption to be realignedticksPassed - the time passed since the last processing request
protected boolean isConsumer()
isConsumer in class ResourceSpreaderpublic String toString()
toString in class ResourceSpreader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||