Class ContainerShellWebSocket
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.webapp.ContainerShellWebSocket
@LimitedPrivate({"HDFS","MapReduce","YARN"})
@Unstable
@WebSocket
public class ContainerShellWebSocket
extends Object
Web socket for establishing interactive command shell connection through
Node Manage to container executor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAuthorization(org.eclipse.jetty.websocket.api.Session session, Container container) Check if user is authorized to access container.static voidvoidvoidonConnect(org.eclipse.jetty.websocket.api.Session session) void
-
Constructor Details
-
ContainerShellWebSocket
public ContainerShellWebSocket()
-
-
Method Details
-
init
-
onText
@OnWebSocketMessage public void onText(org.eclipse.jetty.websocket.api.Session session, String message) throws IOException - Throws:
IOException
-
onConnect
@OnWebSocketConnect public void onConnect(org.eclipse.jetty.websocket.api.Session session) -
onClose
@OnWebSocketClose public void onClose(org.eclipse.jetty.websocket.api.Session session, int status, String reason) -
checkAuthorization
protected boolean checkAuthorization(org.eclipse.jetty.websocket.api.Session session, Container container) throws IOException Check if user is authorized to access container.- Parameters:
session- websocket sessioncontainer- instance of container to access- Returns:
- true if user is allowed to access container.
- Throws:
IOException
-