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