public static class OpportunisticContainerAllocator.AllocationParams extends Object
| Constructor and Description | 
|---|
| AllocationParams() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getContainerTokenExpiryInterval()Get Container Token Expiry interval. | 
| org.apache.hadoop.yarn.api.records.Resource | getIncrementResource()Get Incremental Resource. | 
| int | getMaxAllocationsPerSchedulerKeyPerRound()Get the Max Allocations per Scheduler Key per allocation round. | 
| org.apache.hadoop.yarn.api.records.Resource | getMaxResource()Return Max Resource. | 
| org.apache.hadoop.yarn.api.records.Resource | getMinResource()Get Min Resource. | 
| void | setContainerTokenExpiryInterval(int containerTokenExpiryInterval)Set Container Token Expiry time in ms. | 
| void | setIncrementResource(org.apache.hadoop.yarn.api.records.Resource incrementResource)Set Incremental resource. | 
| void | setMaxAllocationsPerSchedulerKeyPerRound(int maxAllocationsPerSchedulerKeyPerRound)Set the Max Allocations per Scheduler Key per allocation round. | 
| void | setMaxResource(org.apache.hadoop.yarn.api.records.Resource maxResource)Set Max Resource. | 
| void | setMinResource(org.apache.hadoop.yarn.api.records.Resource minResource)Set Min Resource. | 
public org.apache.hadoop.yarn.api.records.Resource getMaxResource()
public void setMaxResource(org.apache.hadoop.yarn.api.records.Resource maxResource)
maxResource - Resourcepublic org.apache.hadoop.yarn.api.records.Resource getMinResource()
public void setMinResource(org.apache.hadoop.yarn.api.records.Resource minResource)
minResource - Resourcepublic org.apache.hadoop.yarn.api.records.Resource getIncrementResource()
public void setIncrementResource(org.apache.hadoop.yarn.api.records.Resource incrementResource)
incrementResource - Resourcepublic int getContainerTokenExpiryInterval()
public void setContainerTokenExpiryInterval(int containerTokenExpiryInterval)
containerTokenExpiryInterval - Container Token Expiry in mspublic int getMaxAllocationsPerSchedulerKeyPerRound()
public void setMaxAllocationsPerSchedulerKeyPerRound(int maxAllocationsPerSchedulerKeyPerRound)
maxAllocationsPerSchedulerKeyPerRound - val.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.