Uses of Class
org.apache.hadoop.yarn.api.records.ResourceInformation
Packages that use ResourceInformation
Package
Description
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Package org.apache.hadoop.yarn.api.records.impl contains classes
which define basic resources.
Package org.apache.hadoop.yarn.util.resource contains classes
which is used as utility class for resource profile computations.
-
Uses of ResourceInformation in org.apache.hadoop.yarn.api.records
Fields in org.apache.hadoop.yarn.api.records declared as ResourceInformationModifier and TypeFieldDescriptionstatic final ResourceInformationResourceInformation.FPGASstatic final ResourceInformationResourceInformation.GPUSstatic final ResourceInformationResourceInformation.MEMORY_MBprotected ResourceInformation[]Resource.resourcesstatic final ResourceInformationResourceInformation.VCORESFields in org.apache.hadoop.yarn.api.records with type parameters of type ResourceInformationModifier and TypeFieldDescriptionstatic final Map<String,ResourceInformation> ResourceInformation.SPECIAL_RESOURCESSpecial resources that should be treated separately from arbitrary resource types.Methods in org.apache.hadoop.yarn.api.records that return ResourceInformationModifier and TypeMethodDescriptionResource.getResourceInformation(int index) Get ResourceInformation for a specified resource from a given index.Resource.getResourceInformation(String resource) Get ResourceInformation for a specified resource.Resource.getResources()Get ResourceInformation for all resources.protected static ResourceInformationResource.newDefaultInformation(String name, String unit, long value) Create ResourceInformation with basic fields.static ResourceInformationResourceInformation.newInstance(String name) static ResourceInformationResourceInformation.newInstance(String name, long value) static ResourceInformationResourceInformation.newInstance(String name, String units) static ResourceInformationResourceInformation.newInstance(String name, String units, long value) static ResourceInformationResourceInformation.newInstance(String name, String units, long minRes, long maxRes) static ResourceInformationResourceInformation.newInstance(String name, String units, long value, Set<String> tags, Map<String, String> attributes) static ResourceInformationResourceInformation.newInstance(String name, String units, long value, ResourceTypes type, long minimumAllocation, long maximumAllocation) static ResourceInformationResourceInformation.newInstance(String name, String units, long value, ResourceTypes type, long minimumAllocation, long maximumAllocation, Set<String> tags, Map<String, String> attributes) static ResourceInformationResourceInformation.newInstance(String name, String units, ResourceTypes resourceType) static ResourceInformationResourceInformation.newInstance(ResourceInformation other) Create a new instance of ResourceInformation from another object.Methods in org.apache.hadoop.yarn.api.records that return types with arguments of type ResourceInformationModifier and TypeMethodDescriptionResource.getAllResourcesListCopy()Get list of resource information, this will be used by JAXB.Methods in org.apache.hadoop.yarn.api.records with parameters of type ResourceInformationModifier and TypeMethodDescriptionintResourceInformation.compareTo(ResourceInformation other) static voidResourceInformation.copy(ResourceInformation src, ResourceInformation dst) Copies the content of the source ResourceInformation object to the destination object, overwriting all properties of the destination object.static ResourceInformationResourceInformation.newInstance(ResourceInformation other) Create a new instance of ResourceInformation from another object.voidResource.setResourceInformation(int index, ResourceInformation resourceInformation) Set the ResourceInformation object for a particular resource.voidResource.setResourceInformation(String resource, ResourceInformation resourceInformation) Set the ResourceInformation object for a particular resource.protected voidResource.setResources(ResourceInformation[] resources) -
Uses of ResourceInformation in org.apache.hadoop.yarn.api.records.impl
Constructors in org.apache.hadoop.yarn.api.records.impl with parameters of type ResourceInformationModifierConstructorDescriptionLightWeightResource(long memory, int vcores, ResourceInformation[] source) -
Uses of ResourceInformation in org.apache.hadoop.yarn.util.resource
Methods in org.apache.hadoop.yarn.util.resource that return ResourceInformationModifier and TypeMethodDescriptionstatic ResourceInformation[]ResourceUtils.createResourceTypesArray(Map<String, Long> res) Create an array ofResourceInformationobjects corresponding to the passed in map of names to values.static ResourceInformation[]ResourceUtils.getResourceTypesArray()Methods in org.apache.hadoop.yarn.util.resource that return types with arguments of type ResourceInformationModifier and TypeMethodDescriptionstatic Map<String,ResourceInformation> ResourceUtils.getNodeResourceInformation(org.apache.hadoop.conf.Configuration conf) Function to get the resources for a node.static List<ResourceInformation>ResourceUtils.getRequestedResourcesFromConfig(org.apache.hadoop.conf.Configuration configuration, String prefix) From a given configuration get all entries representing requested resources: entries that match the {prefix}{resourceName}={value}[{units}] pattern.static Map<String,ResourceInformation> ResourceUtils.getResourceTypes()Get the resource types to be supported by the system.static Map<String,ResourceInformation> ResourceUtils.resetResourceTypes(org.apache.hadoop.conf.Configuration conf) Method parameters in org.apache.hadoop.yarn.util.resource with type arguments of type ResourceInformationModifier and TypeMethodDescriptionstatic voidResourceUtils.initializeResourcesFromResourceInformationMap(Map<String, ResourceInformation> resourceInformationMap) This method is visible for testing, unit test can construct a resourceInformationMap and pass it to this method to initialize multiple resources.