org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb
Class NodeHeartbeatResponsePBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<YarnServerCommonServiceProtos.NodeHeartbeatResponseProto>
      extended by org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.NodeHeartbeatResponsePBImpl
All Implemented Interfaces:
NodeHeartbeatResponse

public class NodeHeartbeatResponsePBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<YarnServerCommonServiceProtos.NodeHeartbeatResponseProto>
implements NodeHeartbeatResponse


Constructor Summary
NodeHeartbeatResponsePBImpl()
           
NodeHeartbeatResponsePBImpl(YarnServerCommonServiceProtos.NodeHeartbeatResponseProto proto)
           
 
Method Summary
 void addAllApplicationsToCleanup(List<org.apache.hadoop.yarn.api.records.ApplicationId> applicationsToCleanup)
           
 void addAllContainersToCleanup(List<org.apache.hadoop.yarn.api.records.ContainerId> containersToCleanup)
           
 void addContainersToBeRemovedFromNM(List<org.apache.hadoop.yarn.api.records.ContainerId> containers)
           
 List<org.apache.hadoop.yarn.api.records.ApplicationId> getApplicationsToCleanup()
           
 List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToBeRemovedFromNM()
           
 List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToCleanup()
           
 MasterKey getContainerTokenMasterKey()
           
 String getDiagnosticsMessage()
           
 long getNextHeartBeatInterval()
           
 MasterKey getNMTokenMasterKey()
           
 NodeAction getNodeAction()
           
 YarnServerCommonServiceProtos.NodeHeartbeatResponseProto getProto()
           
 int getResponseId()
           
 Map<org.apache.hadoop.yarn.api.records.ApplicationId,ByteBuffer> getSystemCredentialsForApps()
           
 void setContainerTokenMasterKey(MasterKey masterKey)
           
 void setDiagnosticsMessage(String diagnosticsMessage)
           
 void setNextHeartBeatInterval(long nextHeartBeatInterval)
           
 void setNMTokenMasterKey(MasterKey masterKey)
           
 void setNodeAction(NodeAction nodeAction)
           
 void setResponseId(int responseId)
           
 void setSystemCredentialsForApps(Map<org.apache.hadoop.yarn.api.records.ApplicationId,ByteBuffer> systemCredentials)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeHeartbeatResponsePBImpl

public NodeHeartbeatResponsePBImpl()

NodeHeartbeatResponsePBImpl

public NodeHeartbeatResponsePBImpl(YarnServerCommonServiceProtos.NodeHeartbeatResponseProto proto)
Method Detail

getProto

public YarnServerCommonServiceProtos.NodeHeartbeatResponseProto getProto()
Specified by:
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<YarnServerCommonServiceProtos.NodeHeartbeatResponseProto>

getResponseId

public int getResponseId()
Specified by:
getResponseId in interface NodeHeartbeatResponse

setResponseId

public void setResponseId(int responseId)
Specified by:
setResponseId in interface NodeHeartbeatResponse

getContainerTokenMasterKey

public MasterKey getContainerTokenMasterKey()
Specified by:
getContainerTokenMasterKey in interface NodeHeartbeatResponse

setContainerTokenMasterKey

public void setContainerTokenMasterKey(MasterKey masterKey)
Specified by:
setContainerTokenMasterKey in interface NodeHeartbeatResponse

getNMTokenMasterKey

public MasterKey getNMTokenMasterKey()
Specified by:
getNMTokenMasterKey in interface NodeHeartbeatResponse

setNMTokenMasterKey

public void setNMTokenMasterKey(MasterKey masterKey)
Specified by:
setNMTokenMasterKey in interface NodeHeartbeatResponse

getNodeAction

public NodeAction getNodeAction()
Specified by:
getNodeAction in interface NodeHeartbeatResponse

setNodeAction

public void setNodeAction(NodeAction nodeAction)
Specified by:
setNodeAction in interface NodeHeartbeatResponse

getDiagnosticsMessage

public String getDiagnosticsMessage()
Specified by:
getDiagnosticsMessage in interface NodeHeartbeatResponse

setDiagnosticsMessage

public void setDiagnosticsMessage(String diagnosticsMessage)
Specified by:
setDiagnosticsMessage in interface NodeHeartbeatResponse

getContainersToCleanup

public List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToCleanup()
Specified by:
getContainersToCleanup in interface NodeHeartbeatResponse

getContainersToBeRemovedFromNM

public List<org.apache.hadoop.yarn.api.records.ContainerId> getContainersToBeRemovedFromNM()
Specified by:
getContainersToBeRemovedFromNM in interface NodeHeartbeatResponse

addAllContainersToCleanup

public void addAllContainersToCleanup(List<org.apache.hadoop.yarn.api.records.ContainerId> containersToCleanup)
Specified by:
addAllContainersToCleanup in interface NodeHeartbeatResponse

addContainersToBeRemovedFromNM

public void addContainersToBeRemovedFromNM(List<org.apache.hadoop.yarn.api.records.ContainerId> containers)
Specified by:
addContainersToBeRemovedFromNM in interface NodeHeartbeatResponse

getApplicationsToCleanup

public List<org.apache.hadoop.yarn.api.records.ApplicationId> getApplicationsToCleanup()
Specified by:
getApplicationsToCleanup in interface NodeHeartbeatResponse

addAllApplicationsToCleanup

public void addAllApplicationsToCleanup(List<org.apache.hadoop.yarn.api.records.ApplicationId> applicationsToCleanup)
Specified by:
addAllApplicationsToCleanup in interface NodeHeartbeatResponse

getSystemCredentialsForApps

public Map<org.apache.hadoop.yarn.api.records.ApplicationId,ByteBuffer> getSystemCredentialsForApps()
Specified by:
getSystemCredentialsForApps in interface NodeHeartbeatResponse

setSystemCredentialsForApps

public void setSystemCredentialsForApps(Map<org.apache.hadoop.yarn.api.records.ApplicationId,ByteBuffer> systemCredentials)
Specified by:
setSystemCredentialsForApps in interface NodeHeartbeatResponse

getNextHeartBeatInterval

public long getNextHeartBeatInterval()
Specified by:
getNextHeartBeatInterval in interface NodeHeartbeatResponse

setNextHeartBeatInterval

public void setNextHeartBeatInterval(long nextHeartBeatInterval)
Specified by:
setNextHeartBeatInterval in interface NodeHeartbeatResponse


Copyright © 2014 Apache Software Foundation. All Rights Reserved.