protected static class BaseResourceAwareStrategy.ObjectResources extends Object
class to keep track of resources on a rack or node.
Modifier and Type | Field and Description |
---|---|
NormalizedResourceOffer |
availableResources |
double |
effectiveResources |
String |
id |
NormalizedResourceOffer |
totalResources |
Constructor and Description |
---|
ObjectResources(BaseResourceAwareStrategy.ObjectResources other) |
ObjectResources(String id) |
ObjectResources(String id,
NormalizedResourceOffer availableResources,
NormalizedResourceOffer totalResources,
double effectiveResources) |
public final String id
public NormalizedResourceOffer availableResources
public NormalizedResourceOffer totalResources
public double effectiveResources
public ObjectResources(String id)
public ObjectResources(BaseResourceAwareStrategy.ObjectResources other)
public ObjectResources(String id, NormalizedResourceOffer availableResources, NormalizedResourceOffer totalResources, double effectiveResources)
Copyright © 2019 The Apache Software Foundation. All rights reserved.