public class SupervisorResources extends Object
Constructor and Description |
---|
SupervisorResources(double totalMem,
double totalCpu,
double usedMem,
double usedCpu)
Constructor for a Supervisor’s resources.
|
Modifier and Type | Method and Description |
---|---|
SupervisorResources |
addMem(Double value) |
double |
getAvailableCpu() |
double |
getAvailableMem() |
double |
getTotalCpu() |
double |
getTotalMem() |
double |
getUsedCpu() |
double |
getUsedMem() |
public SupervisorResources(double totalMem, double totalCpu, double usedMem, double usedCpu)
Constructor for a Supervisor’s resources.
totalMem
- the total mem on the supervisortotalCpu
- the total CPU on the supervisorusedMem
- the used mem on the supervisorusedCpu
- the used CPU on the supervisorpublic double getUsedMem()
public double getUsedCpu()
public double getTotalMem()
public double getTotalCpu()
public double getAvailableCpu()
public double getAvailableMem()
public SupervisorResources addMem(Double value)
Copyright © 2019 The Apache Software Foundation. All rights reserved.