| Package | Description |
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.yarn.api.records |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ResourceTypes |
ResourceTypes.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ResourceTypes[] |
ResourceTypes.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
ResourceTypes |
ResourceInformation.getResourceType() |
Get the resource type.
|
abstract ResourceTypes |
ResourceTypeInfo.getResourceType() |
Get the resource type.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ResourceInformation |
ResourceInformation.newInstance(java.lang.String name,
java.lang.String units,
long value,
ResourceTypes type,
long minimumAllocation,
long maximumAllocation) |
|
static ResourceInformation |
ResourceInformation.newInstance(java.lang.String name,
java.lang.String units,
long value,
ResourceTypes type,
long minimumAllocation,
long maximumAllocation,
java.util.Set<java.lang.String> tags,
java.util.Map<java.lang.String,java.lang.String> attributes) |
|
static ResourceInformation |
ResourceInformation.newInstance(java.lang.String name,
java.lang.String units,
ResourceTypes resourceType) |
|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(java.lang.String name,
java.lang.String units,
ResourceTypes type) |
Create a new instance of ResourceTypeInfo from name, units and type.
|
void |
ResourceInformation.setResourceType(ResourceTypes type) |
Set the resource type.
|
abstract void |
ResourceTypeInfo.setResourceType(ResourceTypes type) |
Set the resource type.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.