|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpulling.availability_imposer.CPU_EatersLauncher
public class CPU_EatersLauncher
This class is responsible for launching processes that eats the CPU time of current machine
Constructor Summary | |
---|---|
CPU_EatersLauncher(double percentage,
double forHowLong)
Default constructor. |
Method Summary | |
---|---|
double |
getForHowLong()
|
double |
getPercentage()
|
void |
launchEnoughCPU_EatersToEat(double percentage,
double forHowLong)
This method checks the number of cores existing in the system and launch eaters accordingly. |
void |
setForHowLong(double forHowLong)
|
void |
setPercentage(double percentage)
|
void |
startEaters()
This method starts the eater. |
void |
stopEaters()
This method stops the eater. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPU_EatersLauncher(double percentage, double forHowLong)
percentage
- to set the percentage fieldforHowLong
- to set the the forHowLong fieldMethod Detail |
---|
public double getPercentage()
public void setPercentage(double percentage)
public double getForHowLong()
public void setForHowLong(double forHowLong)
public void startEaters()
public void stopEaters()
public void launchEnoughCPU_EatersToEat(double percentage, double forHowLong)
percentage
- The percentage of CPU time to be eaten from the processorforHowLong
- The duration in minutes for the eating process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |