public class MonitorRouter extends Object implements HttpRouter
| Constructor and Description |
|---|
MonitorRouter() |
| Modifier and Type | Method and Description |
|---|---|
static List<IPAnalysis> |
ipAddressInfo()
返回请求IP分析信息
|
void |
process(HttpRequest request,
HttpResponse response) |
static String |
readLogs(String type,
int lineNumber)
从尾部读取日志信息
|
static List<RequestAnalysis> |
requestInfo()
返回请求分析信息
|
public static String readLogs(String type, int lineNumber) throws IOException
type - 日志类型lineNumber - 日志行数IOException - IO 异常public static List<RequestAnalysis> requestInfo()
public static List<IPAnalysis> ipAddressInfo()
public void process(HttpRequest request, HttpResponse response) throws Exception
process in interface HttpRouterExceptionCopyright © 2020 Voovan. All rights reserved.