|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnServiceProtos.StartContainerResponseProto>
org.apache.hadoop.yarn.api.protocolrecords.impl.pb.StartContainerResponsePBImpl
public class StartContainerResponsePBImpl
| Constructor Summary | |
|---|---|
StartContainerResponsePBImpl()
|
|
StartContainerResponsePBImpl(YarnServiceProtos.StartContainerResponseProto proto)
|
|
| Method Summary | |
|---|---|
void |
addAllServiceResponse(Map<String,ByteBuffer> serviceResponse)
Add to the list of auxiliary services which have been started on the NodeManager. |
void |
clearServiceResponse()
Remove all the auxiliary services from the StartContainerResponse object |
Map<String,ByteBuffer> |
getAllServiceResponse()
Get the responses from all auxiliary services running on the NodeManager. |
YarnServiceProtos.StartContainerResponseProto |
getProto()
|
ByteBuffer |
getServiceResponse(String key)
Get the response from a single auxiliary service running on the NodeManager |
void |
removeServiceResponse(String key)
Remove a single auxiliary service from the StartContainerResponse object |
void |
setServiceResponse(String key,
ByteBuffer val)
Add to the list of auxiliary services which have been started on the NodeManager. |
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StartContainerResponsePBImpl()
public StartContainerResponsePBImpl(YarnServiceProtos.StartContainerResponseProto proto)
| Method Detail |
|---|
public YarnServiceProtos.StartContainerResponseProto getProto()
getProto in class ProtoBase<YarnServiceProtos.StartContainerResponseProto>public Map<String,ByteBuffer> getAllServiceResponse()
StartContainerResponseGet the responses from all auxiliary services running on the
NodeManager.
The responses are returned as a Map between the auxiliary service names
and their corresponding opaque blob ByteBuffers
getAllServiceResponse in interface StartContainerResponsepublic ByteBuffer getServiceResponse(String key)
StartContainerResponseNodeManager
getServiceResponse in interface StartContainerResponsekey - The auxiliary service name whose response is desired.
ByteBuffer returned by the auxiliary
service.public void addAllServiceResponse(Map<String,ByteBuffer> serviceResponse)
StartContainerResponseNodeManager. This is done only once when the
NodeManager starts up
addAllServiceResponse in interface StartContainerResponseserviceResponse - A map from auxiliary service names to the opaque
blob ByteBuffers for that auxiliary service
public void setServiceResponse(String key,
ByteBuffer val)
StartContainerResponseNodeManager. This is done only once when the
NodeManager starts up
setServiceResponse in interface StartContainerResponsekey - The auxiliary service nameval - The opaque blob ByteBuffer managed by the
auxiliary servicepublic void removeServiceResponse(String key)
StartContainerResponse
removeServiceResponse in interface StartContainerResponsekey - The auxiliary service to removepublic void clearServiceResponse()
StartContainerResponse
clearServiceResponse in interface StartContainerResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||