public class YarnServerBuilderUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
YarnServerBuilderUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,java.nio.ByteBuffer> |
convertFromProtoFormat(java.util.Collection<org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto> systemCredentials) |
Convert Collection of SystemCredentialsForAppsProto proto objects to a Map
of ApplicationId to ByteBuffer.
|
static java.util.List<org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto> |
convertToProtoFormat(java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,java.nio.ByteBuffer> systemCredentialsForApps) |
Convert Map of Application Id to ByteBuffer to Collection of
SystemCredentialsForAppsProto proto objects.
|
static NodeHeartbeatResponse |
newNodeHeartbeatResponse(int responseId,
NodeAction action,
java.util.List<org.apache.hadoop.yarn.api.records.ContainerId> containersToCleanUp,
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> applicationsToCleanUp,
MasterKey containerTokenMasterKey,
MasterKey nmTokenMasterKey,
long nextHeartbeatInterval) |
|
static NodeHeartbeatResponse |
newNodeHeartbeatResponse(NodeAction action,
java.lang.String diagnosticsMessage) |
|
static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto |
newSystemCredentialsForAppsProto(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.nio.ByteBuffer credentials) |
Build SystemCredentialsForAppsProto objects.
|
public static NodeHeartbeatResponse newNodeHeartbeatResponse(NodeAction action, java.lang.String diagnosticsMessage)
public static NodeHeartbeatResponse newNodeHeartbeatResponse(int responseId, NodeAction action, java.util.List<org.apache.hadoop.yarn.api.records.ContainerId> containersToCleanUp, java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> applicationsToCleanUp, MasterKey containerTokenMasterKey, MasterKey nmTokenMasterKey, long nextHeartbeatInterval)
public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto newSystemCredentialsForAppsProto(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
java.nio.ByteBuffer credentials)
applicationId - Application IDcredentials - HDFS Tokenspublic static java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,java.nio.ByteBuffer> convertFromProtoFormat(java.util.Collection<org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto> systemCredentials)
systemCredentials - List of SystemCredentialsForAppsProto proto
objectspublic static java.util.List<org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto> convertToProtoFormat(java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,java.nio.ByteBuffer> systemCredentialsForApps)
systemCredentialsForApps - Map of Application Id to ByteBufferCopyright © 2008–2025 Apache Software Foundation. All rights reserved.