public class AgentFileTailWatcher<T> extends BaseFileTailWatcher<T>
logFile, socketSessions
Modifier and Type | Method and Description |
---|---|
static boolean |
addWatcher(File file,
javax.websocket.Session session)
添加文件监听
|
protected void |
close()
关闭
|
static int |
getOneLineCount() |
static void |
offline(javax.websocket.Session session)
有客户端离线
|
static void |
offlineFile(File fileName)
关闭文件读取流
|
add, detectorCharset, send, start
public static int getOneLineCount()
public static boolean addWatcher(File file, javax.websocket.Session session) throws IOException
file
- 文件session
- 会话IOException
- 异常public static void offline(javax.websocket.Session session)
session
- 会话public static void offlineFile(File fileName)
fileName
- 文件名protected void close()
close
in class BaseFileTailWatcher<T>
Copyright © 2017–2022. All rights reserved.