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.WebSocketConnectionListeneronWebSocketClose in class org.eclipse.jetty.websocket.api.WebSocketAdapterpublic void onWebSocketText(String message)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListeneronWebSocketText in class org.eclipse.jetty.websocket.api.WebSocketAdaptermessage - 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.