public class TailSocket
extends org.eclipse.jetty.websocket.api.WebSocketAdapter
LogFiles
.Modifier and Type | Method and Description |
---|---|
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketText(String message) |
public void onWebSocketClose(int statusCode, String reason)
onWebSocketClose
in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListener
onWebSocketClose
in class org.eclipse.jetty.websocket.api.WebSocketAdapter
public void onWebSocketText(String message)
onWebSocketText
in interface org.eclipse.jetty.websocket.api.WebSocketListener
onWebSocketText
in class org.eclipse.jetty.websocket.api.WebSocketAdapter
message
- either "ping" or "stop", or a tail command as specified by TAIL_COMMAND
.
immediately sends the last n
bytes of a specified
log file, if present, and begins tailing the logfile thereafter.Copyright © 2024. All rights reserved.