Class OpportunisticContainerAllocator.AllocationParams
java.lang.Object
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator.AllocationParams
- Enclosing class:
- OpportunisticContainerAllocator
This class encapsulates application specific parameters used to build a
Container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet Container Token Expiry interval.org.apache.hadoop.yarn.api.records.ResourceGet Incremental Resource.intGet the Max Allocations per Scheduler Key per allocation round.org.apache.hadoop.yarn.api.records.ResourceReturn Max Resource.org.apache.hadoop.yarn.api.records.ResourceGet Min Resource.voidsetContainerTokenExpiryInterval(int containerTokenExpiryInterval) Set Container Token Expiry time in ms.voidsetIncrementResource(org.apache.hadoop.yarn.api.records.Resource incrementResource) Set Incremental resource.voidsetMaxAllocationsPerSchedulerKeyPerRound(int maxAllocationsPerSchedulerKeyPerRound) Set the Max Allocations per Scheduler Key per allocation round.voidsetMaxResource(org.apache.hadoop.yarn.api.records.Resource maxResource) Set Max Resource.voidsetMinResource(org.apache.hadoop.yarn.api.records.Resource minResource) Set Min Resource.
-
Constructor Details
-
AllocationParams
public AllocationParams()
-
-
Method Details
-
getMaxResource
public org.apache.hadoop.yarn.api.records.Resource getMaxResource()Return Max Resource.- Returns:
- Resource
-
setMaxResource
public void setMaxResource(org.apache.hadoop.yarn.api.records.Resource maxResource) Set Max Resource.- Parameters:
maxResource- Resource
-
getMinResource
public org.apache.hadoop.yarn.api.records.Resource getMinResource()Get Min Resource.- Returns:
- Resource
-
setMinResource
public void setMinResource(org.apache.hadoop.yarn.api.records.Resource minResource) Set Min Resource.- Parameters:
minResource- Resource
-
getIncrementResource
public org.apache.hadoop.yarn.api.records.Resource getIncrementResource()Get Incremental Resource.- Returns:
- Incremental Resource
-
setIncrementResource
public void setIncrementResource(org.apache.hadoop.yarn.api.records.Resource incrementResource) Set Incremental resource.- Parameters:
incrementResource- Resource
-
getContainerTokenExpiryInterval
public int getContainerTokenExpiryInterval()Get Container Token Expiry interval.- Returns:
- Container Token Expiry interval
-
setContainerTokenExpiryInterval
public void setContainerTokenExpiryInterval(int containerTokenExpiryInterval) Set Container Token Expiry time in ms.- Parameters:
containerTokenExpiryInterval- Container Token Expiry in ms
-
getMaxAllocationsPerSchedulerKeyPerRound
public int getMaxAllocationsPerSchedulerKeyPerRound()Get the Max Allocations per Scheduler Key per allocation round.- Returns:
- maxAllocationsPerSchedulerKeyPerRound.
-
setMaxAllocationsPerSchedulerKeyPerRound
public void setMaxAllocationsPerSchedulerKeyPerRound(int maxAllocationsPerSchedulerKeyPerRound) Set the Max Allocations per Scheduler Key per allocation round.- Parameters:
maxAllocationsPerSchedulerKeyPerRound- val.
-