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