pulling.availability_imposer
Class CPU_Eater
java.lang.Object
pulling.availability_imposer.CPU_Eater
- All Implemented Interfaces:
- java.lang.Runnable
public class CPU_Eater
- extends java.lang.Object
- implements java.lang.Runnable
Constructor Summary |
CPU_Eater(double percentage,
double forHowLong)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CPU_Eater
public CPU_Eater(double percentage,
double forHowLong)
getPercentage
public double getPercentage()
setPercentage
public void setPercentage(double percentage)
getForHowLong
public double getForHowLong()
setForHowLong
public void setForHowLong(double forHowLong)
isAlive
public boolean isAlive()
setAlive
public void setAlive(boolean alive)
startThread
public void startThread()
stopThread
public void stopThread()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
main
public static void main(java.lang.String[] args)