public final class TopologyResources extends Object
Modifier | Constructor and Description |
---|---|
|
TopologyResources() |
protected |
TopologyResources(double requestedMemOnHeap,
double requestedMemOffHeap,
double requestedSharedMemOnHeap,
double requestedSharedMemOffHeap,
double requestedNonSharedMemOnHeap,
double requestedNonSharedMemOffHeap,
double requestedCpu,
Map<String,Double> requestedGenericResources,
double assignedMemOnHeap,
double assignedMemOffHeap,
double assignedSharedMemOnHeap,
double assignedSharedMemOffHeap,
double assignedNonSharedMemOnHeap,
double assignedNonSharedMemOffHeap,
double assignedCpu,
Map<String,Double> assignedGenericResources) |
|
TopologyResources(TopologyDetails td,
Assignment assignment) |
|
TopologyResources(TopologyDetails td,
SchedulerAssignment assignment) |
public TopologyResources(TopologyDetails td, SchedulerAssignment assignment)
public TopologyResources(TopologyDetails td, Assignment assignment)
public TopologyResources()
protected TopologyResources(double requestedMemOnHeap, double requestedMemOffHeap, double requestedSharedMemOnHeap, double requestedSharedMemOffHeap, double requestedNonSharedMemOnHeap, double requestedNonSharedMemOffHeap, double requestedCpu, Map<String,Double> requestedGenericResources, double assignedMemOnHeap, double assignedMemOffHeap, double assignedSharedMemOnHeap, double assignedSharedMemOffHeap, double assignedNonSharedMemOnHeap, double assignedNonSharedMemOffHeap, double assignedCpu, Map<String,Double> assignedGenericResources)
public double getRequestedMemOnHeap()
public double getRequestedMemOffHeap()
public double getRequestedCpu()
public double getAssignedMemOnHeap()
public void setAssignedMemOnHeap(double assignedMemOnHeap)
public double getAssignedMemOffHeap()
public void setAssignedMemOffHeap(double assignedMemOffHeap)
public double getAssignedCpu()
public void setAssignedCpu(double assignedCpu)
public double getAssignedSharedMemOnHeap()
public void setAssignedSharedMemOnHeap(double assignedSharedMemOnHeap)
public double getRequestedSharedMemOnHeap()
public double getRequestedSharedMemOffHeap()
public double getRequestedNonSharedMemOnHeap()
public double getRequestedNonSharedMemOffHeap()
public double getAssignedSharedMemOffHeap()
public void setAssignedSharedMemOffHeap(double assignedSharedMemOffHeap)
public double getAssignedNonSharedMemOnHeap()
public void setAssignedNonSharedMemOnHeap(double assignedNonSharedMemOnHeap)
public double getAssignedNonSharedMemOffHeap()
public void setAssignedNonSharedMemOffHeap(double assignedNonSharedMemOffHeap)
public TopologyResources add(TopologyResources other)
Add the values in other to this and return a combined resources object.
other
- the other resources to add to thisCopyright © 2020 The Apache Software Foundation. All rights reserved.