pulling.availability_imposer
Class CPU_Eater

java.lang.Object
  extended by 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)
           
 
Method Summary
 double getForHowLong()
           
 double getPercentage()
           
 boolean isAlive()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setAlive(boolean alive)
           
 void setForHowLong(double forHowLong)
           
 void setPercentage(double percentage)
           
 void startThread()
           
 void stopThread()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPU_Eater

public CPU_Eater(double percentage,
                 double forHowLong)
Method Detail

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)