Class SignalContainerRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest
The request sent by the client to the ResourceManager
or by the ApplicationMaster to the NodeManager
to signal a container.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SignalContainerCommandGet theSignalContainerCommandof the signal request.abstract ContainerIdGet theContainerIdof the container to signal.static SignalContainerRequestnewInstance(ContainerId containerId, SignalContainerCommand signalContainerCommand) abstract voidsetCommand(SignalContainerCommand command) Set theSignalContainerCommandof the signal request.abstract voidsetContainerId(ContainerId containerId) Set theContainerIdof the container to signal.
-
Constructor Details
-
SignalContainerRequest
public SignalContainerRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static SignalContainerRequest newInstance(ContainerId containerId, SignalContainerCommand signalContainerCommand) -
getContainerId
Get theContainerIdof the container to signal.- Returns:
ContainerIdof the container to signal.
-
setContainerId
Set theContainerIdof the container to signal.- Parameters:
containerId- containerId.
-
getCommand
Get theSignalContainerCommandof the signal request.- Returns:
SignalContainerCommandof the signal request.
-
setCommand
Set theSignalContainerCommandof the signal request.- Parameters:
command- signal container command.
-