public static class OpportunisticContainerAllocator.Allocation extends Object
| Constructor and Description | 
|---|
| Allocation(org.apache.hadoop.yarn.api.records.Container container,
          String resourceName)Creates an instance of Allocation. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.api.records.Container | getContainer()Get container of the allocation. | 
| String | getResourceName()Get resource name of the allocation. | 
public Allocation(org.apache.hadoop.yarn.api.records.Container container,
                  String resourceName)
container - allocated container.resourceName - location where it got allocated.public org.apache.hadoop.yarn.api.records.Container getContainer()
public String getResourceName()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.