|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Stable public interface StartContainerResponse
The response sent by the NodeManager
to the
ApplicationMaster
when asked to start an
allocated container.
ContainerManager.startContainer(StartContainerRequest)
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 . |
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 . |
Method Detail |
---|
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 up
serviceResponse
- 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 up
key
- The auxiliary service namevalue
- The opaque blob ByteBuffer
managed by the
auxiliary servicevoid removeServiceResponse(String key)
key
- The auxiliary service to removevoid clearServiceResponse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |