Class WebSocketMetricAdapter
- java.lang.Object
-
- org.eclipse.jetty.websocket.api.WebSocketAdapter
-
- org.apache.nemo.runtime.master.servlet.WebSocketMetricAdapter
-
- All Implemented Interfaces:
org.eclipse.jetty.websocket.api.WebSocketConnectionListener
,org.eclipse.jetty.websocket.api.WebSocketListener
public class WebSocketMetricAdapter extends org.eclipse.jetty.websocket.api.WebSocketAdapter
Adapter for WebSocket metric request and response.
-
-
Constructor Summary
Constructors Constructor Description WebSocketMetricAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onWebSocketClose(int statusCode, java.lang.String reason)
void
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session sess)
void
onWebSocketError(java.lang.Throwable throwable)
void
onWebSocketText(java.lang.String text)
-
-
-
Method Detail
-
onWebSocketConnect
public final void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session sess)
- Specified by:
onWebSocketConnect
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
- Overrides:
onWebSocketConnect
in classorg.eclipse.jetty.websocket.api.WebSocketAdapter
-
onWebSocketClose
public final void onWebSocketClose(int statusCode, java.lang.String reason)
- Specified by:
onWebSocketClose
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
- Overrides:
onWebSocketClose
in classorg.eclipse.jetty.websocket.api.WebSocketAdapter
-
onWebSocketError
public final void onWebSocketError(java.lang.Throwable throwable)
- Specified by:
onWebSocketError
in interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
- Overrides:
onWebSocketError
in classorg.eclipse.jetty.websocket.api.WebSocketAdapter
-
onWebSocketText
public final void onWebSocketText(java.lang.String text)
- Specified by:
onWebSocketText
in interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
- Overrides:
onWebSocketText
in classorg.eclipse.jetty.websocket.api.WebSocketAdapter
-
-