@InterfaceAudience.Public @InterfaceStability.Stable public interface StartContainerResponse
The response sent by the NodeManager
to the
ApplicationMaster
when asked to start an
allocated container.
Modifier and Type | Method and Description |
---|---|
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 . |
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 value)
Add to the list of auxiliary services which have been started on the
NodeManager . |
Map<String,ByteBuffer> getAllServiceResponse()
Get 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 ByteBuffer
s
ByteBuffer getServiceResponse(String key)
NodeManager
key
- The auxiliary service name whose response is desired.ByteBuffer
returned by the auxiliary
service.void addAllServiceResponse(Map<String,ByteBuffer> serviceResponse)
NodeManager
. This is done only once when the
NodeManager
starts upserviceResponse
- A map from auxiliary service names to the opaque
blob ByteBuffer
s for that auxiliary servicevoid setServiceResponse(String key, ByteBuffer value)
NodeManager
. This is done only once when the
NodeManager
starts upkey
- The auxiliary service namevalue
- The opaque blob ByteBuffer
managed by the
auxiliary servicevoid removeServiceResponse(String key)
key
- The auxiliary service to removevoid clearServiceResponse()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.