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 and Description |
---|---|
static ResourceTypes |
ResourceTypes.valueOf(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 and Description |
---|---|
ResourceTypes |
ResourceInformation.getResourceType()
Get the resource type.
|
abstract ResourceTypes |
ResourceTypeInfo.getResourceType()
Get the resource type.
|
Modifier and Type | Method and Description |
---|---|
static ResourceInformation |
ResourceInformation.newInstance(String name,
String units,
long value,
ResourceTypes type,
long minimumAllocation,
long maximumAllocation) |
static ResourceInformation |
ResourceInformation.newInstance(String name,
String units,
long value,
ResourceTypes type,
long minimumAllocation,
long maximumAllocation,
Set<String> tags,
Map<String,String> attributes) |
static ResourceInformation |
ResourceInformation.newInstance(String name,
String units,
ResourceTypes resourceType) |
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(String name,
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–2024 Apache Software Foundation. All rights reserved.