|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpulling.Puller
public class Puller
This class is responsible for managing the Puller module on every server. It is also responsible for communication with the central Mapper.
Constructor Summary | |
---|---|
Puller()
|
Method Summary | |
---|---|
AvailabilityManager |
getAvailabilityManager()
|
CPU_EatersLauncher |
getCpuEater()
|
int |
getPullerPort()
|
static void |
main(java.lang.String[] args)
This is the main loop. |
static double[] |
parseWeightsString(java.lang.String weightString,
int n)
|
void |
setAvailabilityManager(AvailabilityManager availabilityManager)
|
void |
setCpuEater(CPU_EatersLauncher cpuEater)
|
void |
setPullerPort(int pullerPort)
|
void |
startAvailabilityManager(double systemResolution,
java.lang.String mapperHostName,
int mode,
double[] weights,
double c)
This method is invoked from the main method it initialize the Availability Manager object. |
void |
startCPUEater(double percentage,
double forHowLong)
This method start a CPU_Eater that eats a percentage of the CPU for an specific amount of time |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Puller()
Method Detail |
---|
public AvailabilityManager getAvailabilityManager()
public void setAvailabilityManager(AvailabilityManager availabilityManager)
public CPU_EatersLauncher getCpuEater()
public void setCpuEater(CPU_EatersLauncher cpuEater)
public int getPullerPort()
public void setPullerPort(int pullerPort)
public void startAvailabilityManager(double systemResolution, java.lang.String mapperHostName, int mode, double[] weights, double c)
systemResolution
- the system resolution. Which is the time that the Availabilbility Manager object send a new value of ajmapperHostName
- it is the host name of the Mapper machine.mode
- this defines the mode in which the Availability Manager worksweights
- is the array of weights. Please refer to the Thesis document Section Availability model.c
- Please refer to the Thesis document Section Availability model.public void startCPUEater(double percentage, double forHowLong)
percentage
- the percentage to be eaten from the CPUforHowLong
- the time in minutes for how long for the eater to work.public static void main(java.lang.String[] args)
args
- public static double[] parseWeightsString(java.lang.String weightString, int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |