@Private
public class BuilderUtils
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BuilderUtils.ApplicationIdComparator |
|
static class |
BuilderUtils.ContainerIdComparator |
| Constructor | Description |
|---|---|
BuilderUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.yarn.api.records.ApplicationId |
convert(long clustertimestamp,
java.lang.CharSequence id) |
|
static org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse |
newAllocateResponse(int responseId,
java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> completedContainers,
java.util.List<org.apache.hadoop.yarn.api.records.Container> allocatedContainers,
java.util.List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes,
org.apache.hadoop.yarn.api.records.Resource availResources,
org.apache.hadoop.yarn.api.records.AMCommand command,
int numClusterNodes,
org.apache.hadoop.yarn.api.records.PreemptionMessage preempt) |
|
static org.apache.hadoop.yarn.api.records.Token |
newAMRMToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service) |
|
static org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
newApplicationAttemptId(org.apache.hadoop.yarn.api.records.ApplicationId appId,
int attemptId) |
|
static org.apache.hadoop.yarn.api.records.ApplicationId |
newApplicationId(long clusterTimeStamp,
int id) |
|
static org.apache.hadoop.yarn.api.records.ApplicationId |
newApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
long clusterTimeStamp,
int id) |
|
static org.apache.hadoop.yarn.api.records.ApplicationId |
newApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
long clustertimestamp,
java.lang.CharSequence id) |
|
static org.apache.hadoop.yarn.api.records.ApplicationReport |
newApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
java.lang.String user,
java.lang.String queue,
java.lang.String name,
java.lang.String host,
int rpcPort,
org.apache.hadoop.yarn.api.records.Token clientToAMToken,
org.apache.hadoop.yarn.api.records.YarnApplicationState state,
java.lang.String diagnostics,
java.lang.String url,
long startTime,
long launchTime,
long finishTime,
org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalStatus,
org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport appResources,
java.lang.String origTrackingUrl,
float progress,
java.lang.String appType,
org.apache.hadoop.yarn.api.records.Token amRmToken,
java.util.Set<java.lang.String> tags,
org.apache.hadoop.yarn.api.records.Priority priority) |
|
static org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport |
newApplicationResourceUsageReport(int numUsedContainers,
int numReservedContainers,
org.apache.hadoop.yarn.api.records.Resource usedResources,
org.apache.hadoop.yarn.api.records.Resource reservedResources,
org.apache.hadoop.yarn.api.records.Resource neededResources,
java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap,
java.util.Map<java.lang.String,java.lang.Long> preemptedResourceSecondsMap) |
|
static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
newApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.lang.String applicationName,
java.lang.String queue,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
boolean isUnmanagedAM,
boolean cancelTokensWhenComplete,
int maxAppAttempts,
org.apache.hadoop.yarn.api.records.Resource resource) |
|
static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
newApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.lang.String applicationName,
java.lang.String queue,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
boolean isUnmanagedAM,
boolean cancelTokensWhenComplete,
int maxAppAttempts,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String applicationType) |
|
static org.apache.hadoop.yarn.api.records.Token |
newClientToAMToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service) |
|
static org.apache.hadoop.yarn.api.records.Container |
newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken) |
|
static org.apache.hadoop.yarn.api.records.Container |
newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken,
long allocationRequestId) |
|
static org.apache.hadoop.yarn.api.records.Container |
newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId) |
|
static org.apache.hadoop.yarn.api.records.ContainerId |
newContainerId(int appId,
int appAttemptId,
long timestamp,
long id) |
|
static org.apache.hadoop.yarn.api.records.ContainerId |
newContainerId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long containerId) |
|
static org.apache.hadoop.yarn.api.records.ContainerId |
newContainerId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
int containerId) |
|
static org.apache.hadoop.yarn.api.records.ContainerLaunchContext |
newContainerLaunchContext(java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
java.util.Map<java.lang.String,java.lang.String> environment,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,java.nio.ByteBuffer> serviceData,
java.nio.ByteBuffer tokens,
java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,java.lang.String> acls) |
|
static org.apache.hadoop.yarn.api.records.ContainerStatus |
newContainerStatus(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerState containerState,
java.lang.String diagnostics,
int exitStatus,
org.apache.hadoop.yarn.api.records.Resource capability) |
|
static org.apache.hadoop.yarn.api.records.ContainerStatus |
newContainerStatus(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerState containerState,
java.lang.String diagnostics,
int exitStatus,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.ExecutionType executionType) |
|
static org.apache.hadoop.yarn.api.records.Token |
newContainerToken(org.apache.hadoop.yarn.api.records.ContainerId cId,
int containerVersion,
java.lang.String host,
int port,
java.lang.String user,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTime,
int masterKeyId,
byte[] password,
long rmIdentifier) |
|
static org.apache.hadoop.yarn.api.records.Token |
newContainerToken(org.apache.hadoop.yarn.api.records.NodeId nodeId,
byte[] password,
org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenIdentifier) |
|
static org.apache.hadoop.yarn.security.ContainerTokenIdentifier |
newContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.Token containerToken) |
|
static org.apache.hadoop.yarn.api.records.Token |
newDelegationToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service) |
|
static org.apache.hadoop.yarn.api.records.Resource |
newEmptyResource() |
|
static org.apache.hadoop.yarn.api.records.LocalResource |
newLocalResource(java.net.URI uri,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility,
long size,
long timestamp,
boolean shouldBeUploadedToSharedCache) |
|
static org.apache.hadoop.yarn.api.records.LocalResource |
newLocalResource(org.apache.hadoop.yarn.api.records.URL url,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility,
long size,
long timestamp,
boolean shouldBeUploadedToSharedCache) |
|
static org.apache.hadoop.yarn.api.records.NodeId |
newNodeId(java.lang.String host,
int port) |
|
static org.apache.hadoop.yarn.api.records.NodeReport |
newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime) |
|
static org.apache.hadoop.yarn.api.records.NodeReport |
newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime,
java.util.Set<java.lang.String> nodeLabels,
java.lang.Integer decommissioningTimeout,
org.apache.hadoop.yarn.api.records.NodeUpdateType nodeUpdateType) |
|
static org.apache.hadoop.yarn.api.records.NodeReport |
newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime,
java.util.Set<java.lang.String> nodeLabels,
org.apache.hadoop.yarn.api.records.ResourceUtilization containersUtilization,
org.apache.hadoop.yarn.api.records.ResourceUtilization nodeUtilization,
java.lang.Integer decommissioningTimeout,
org.apache.hadoop.yarn.api.records.NodeUpdateType nodeUpdateType,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attrs) |
|
static org.apache.hadoop.yarn.api.records.Priority |
newPriority(int p) |
|
static org.apache.hadoop.yarn.api.records.Resource |
newResource(long memory,
int vCores) |
|
static org.apache.hadoop.yarn.api.records.ResourceRequest |
newResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String hostName,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers) |
|
static org.apache.hadoop.yarn.api.records.ResourceRequest |
newResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String hostName,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String label) |
|
static <T extends org.apache.hadoop.yarn.api.records.Token> |
newToken(java.lang.Class<T> tokenClass,
byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service) |
|
static org.apache.hadoop.yarn.api.records.URL |
newURL(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String file) |
|
static org.apache.hadoop.security.Credentials |
parseCredentials(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext application) |
|
static org.apache.hadoop.conf.Configuration |
parseTokensConf(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) |
public static org.apache.hadoop.yarn.api.records.LocalResource newLocalResource(org.apache.hadoop.yarn.api.records.URL url,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility,
long size,
long timestamp,
boolean shouldBeUploadedToSharedCache)
public static org.apache.hadoop.yarn.api.records.LocalResource newLocalResource(java.net.URI uri,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility,
long size,
long timestamp,
boolean shouldBeUploadedToSharedCache)
public static org.apache.hadoop.yarn.api.records.ApplicationId newApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
long clustertimestamp,
java.lang.CharSequence id)
public static org.apache.hadoop.yarn.api.records.ApplicationId newApplicationId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
long clusterTimeStamp,
int id)
public static org.apache.hadoop.yarn.api.records.ApplicationId newApplicationId(long clusterTimeStamp,
int id)
public static org.apache.hadoop.yarn.api.records.ApplicationAttemptId newApplicationAttemptId(org.apache.hadoop.yarn.api.records.ApplicationId appId,
int attemptId)
public static org.apache.hadoop.yarn.api.records.ApplicationId convert(long clustertimestamp,
java.lang.CharSequence id)
public static org.apache.hadoop.yarn.api.records.ContainerId newContainerId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
long containerId)
public static org.apache.hadoop.yarn.api.records.ContainerId newContainerId(int appId,
int appAttemptId,
long timestamp,
long id)
public static org.apache.hadoop.yarn.api.records.Token newContainerToken(org.apache.hadoop.yarn.api.records.ContainerId cId,
int containerVersion,
java.lang.String host,
int port,
java.lang.String user,
org.apache.hadoop.yarn.api.records.Resource r,
long expiryTime,
int masterKeyId,
byte[] password,
long rmIdentifier)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.yarn.api.records.ContainerId newContainerId(org.apache.hadoop.yarn.factories.RecordFactory recordFactory,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
int containerId)
public static org.apache.hadoop.yarn.api.records.NodeId newNodeId(java.lang.String host,
int port)
public static org.apache.hadoop.yarn.api.records.NodeReport newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime)
public static org.apache.hadoop.yarn.api.records.NodeReport newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime,
java.util.Set<java.lang.String> nodeLabels,
java.lang.Integer decommissioningTimeout,
org.apache.hadoop.yarn.api.records.NodeUpdateType nodeUpdateType)
public static org.apache.hadoop.yarn.api.records.NodeReport newNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId,
org.apache.hadoop.yarn.api.records.NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
org.apache.hadoop.yarn.api.records.Resource used,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime,
java.util.Set<java.lang.String> nodeLabels,
org.apache.hadoop.yarn.api.records.ResourceUtilization containersUtilization,
org.apache.hadoop.yarn.api.records.ResourceUtilization nodeUtilization,
java.lang.Integer decommissioningTimeout,
org.apache.hadoop.yarn.api.records.NodeUpdateType nodeUpdateType,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attrs)
public static org.apache.hadoop.yarn.api.records.ContainerStatus newContainerStatus(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerState containerState,
java.lang.String diagnostics,
int exitStatus,
org.apache.hadoop.yarn.api.records.Resource capability)
public static org.apache.hadoop.yarn.api.records.ContainerStatus newContainerStatus(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerState containerState,
java.lang.String diagnostics,
int exitStatus,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.ExecutionType executionType)
public static org.apache.hadoop.yarn.api.records.Container newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken,
org.apache.hadoop.yarn.api.records.ExecutionType executionType,
long allocationRequestId)
public static org.apache.hadoop.yarn.api.records.Container newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken)
public static org.apache.hadoop.yarn.api.records.Container newContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
java.lang.String nodeHttpAddress,
org.apache.hadoop.yarn.api.records.Resource resource,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.Token containerToken,
long allocationRequestId)
public static <T extends org.apache.hadoop.yarn.api.records.Token> T newToken(java.lang.Class<T> tokenClass,
byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service)
public static org.apache.hadoop.yarn.api.records.Token newDelegationToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service)
public static org.apache.hadoop.yarn.api.records.Token newClientToAMToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service)
public static org.apache.hadoop.yarn.api.records.Token newAMRMToken(byte[] identifier,
java.lang.String kind,
byte[] password,
java.lang.String service)
@VisibleForTesting
public static org.apache.hadoop.yarn.api.records.Token newContainerToken(org.apache.hadoop.yarn.api.records.NodeId nodeId,
byte[] password,
org.apache.hadoop.yarn.security.ContainerTokenIdentifier tokenIdentifier)
public static org.apache.hadoop.yarn.security.ContainerTokenIdentifier newContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.Token containerToken)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.yarn.api.records.ContainerLaunchContext newContainerLaunchContext(java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> localResources,
java.util.Map<java.lang.String,java.lang.String> environment,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,java.nio.ByteBuffer> serviceData,
java.nio.ByteBuffer tokens,
java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType,java.lang.String> acls)
public static org.apache.hadoop.yarn.api.records.Priority newPriority(int p)
public static org.apache.hadoop.yarn.api.records.ResourceRequest newResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String hostName,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers)
public static org.apache.hadoop.yarn.api.records.ResourceRequest newResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
java.lang.String hostName,
org.apache.hadoop.yarn.api.records.Resource capability,
int numContainers,
java.lang.String label)
public static org.apache.hadoop.yarn.api.records.ApplicationReport newApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
java.lang.String user,
java.lang.String queue,
java.lang.String name,
java.lang.String host,
int rpcPort,
org.apache.hadoop.yarn.api.records.Token clientToAMToken,
org.apache.hadoop.yarn.api.records.YarnApplicationState state,
java.lang.String diagnostics,
java.lang.String url,
long startTime,
long launchTime,
long finishTime,
org.apache.hadoop.yarn.api.records.FinalApplicationStatus finalStatus,
org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport appResources,
java.lang.String origTrackingUrl,
float progress,
java.lang.String appType,
org.apache.hadoop.yarn.api.records.Token amRmToken,
java.util.Set<java.lang.String> tags,
org.apache.hadoop.yarn.api.records.Priority priority)
public static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext newApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.lang.String applicationName,
java.lang.String queue,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
boolean isUnmanagedAM,
boolean cancelTokensWhenComplete,
int maxAppAttempts,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String applicationType)
public static org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext newApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.lang.String applicationName,
java.lang.String queue,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext amContainer,
boolean isUnmanagedAM,
boolean cancelTokensWhenComplete,
int maxAppAttempts,
org.apache.hadoop.yarn.api.records.Resource resource)
public static org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport newApplicationResourceUsageReport(int numUsedContainers,
int numReservedContainers,
org.apache.hadoop.yarn.api.records.Resource usedResources,
org.apache.hadoop.yarn.api.records.Resource reservedResources,
org.apache.hadoop.yarn.api.records.Resource neededResources,
java.util.Map<java.lang.String,java.lang.Long> resourceSecondsMap,
java.util.Map<java.lang.String,java.lang.Long> preemptedResourceSecondsMap)
public static org.apache.hadoop.yarn.api.records.Resource newResource(long memory,
int vCores)
public static org.apache.hadoop.yarn.api.records.Resource newEmptyResource()
public static org.apache.hadoop.yarn.api.records.URL newURL(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String file)
public static org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse newAllocateResponse(int responseId,
java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> completedContainers,
java.util.List<org.apache.hadoop.yarn.api.records.Container> allocatedContainers,
java.util.List<org.apache.hadoop.yarn.api.records.NodeReport> updatedNodes,
org.apache.hadoop.yarn.api.records.Resource availResources,
org.apache.hadoop.yarn.api.records.AMCommand command,
int numClusterNodes,
org.apache.hadoop.yarn.api.records.PreemptionMessage preempt)
public static org.apache.hadoop.security.Credentials parseCredentials(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext application)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.conf.Configuration parseTokensConf(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.