@Configuration public class AgentExtConfigBean extends Object
Modifier and Type | Field and Description |
---|---|
String |
autoBackConsoleCron
检测控制台日志周期,防止日志文件过大,目前暂只支持linux 不停服备份
|
String |
autoBackSize
当文件多大时自动备份
|
Boolean |
autoBackToFile
是否自动将控制台日志文件备份
|
boolean |
whitelistDirectoryCheckStartsWith
白名单路径是否判断包含关系
|
Constructor and Description |
---|
AgentExtConfigBean() |
Modifier and Type | Method and Description |
---|---|
cn.hutool.http.HttpRequest |
createServerRequest(String openApi)
创建请求对象
|
String |
getAgentId() |
String |
getAgentUrl()
获取当前的url
|
static AgentExtConfigBean |
getInstance()
单例
|
int |
getLogSaveDays()
配置错误或者没有,默认是7天
|
int |
getProjectFileBackupCount() |
String[] |
getProjectFileBackupSuffix() |
String |
getServerToken() |
String |
getServerUrl() |
int |
getStopWaitTime() |
boolean |
openLogBack()
是否开启日志备份
|
@Value(value="${whitelistDirectory.checkStartsWith:true}") public boolean whitelistDirectoryCheckStartsWith
@Value(value="${log.autoBackConsoleCron:0 0/10 * * * ?}") public String autoBackConsoleCron
@Value(value="${log.autoBackSize:50MB}") public String autoBackSize
FileSize
@Value(value="${log.autoBackToFile:true}") public Boolean autoBackToFile
public int getStopWaitTime()
public int getProjectFileBackupCount()
public String[] getProjectFileBackupSuffix()
public String getAgentId()
public String getServerUrl()
public String getServerToken()
public String getAgentUrl()
public cn.hutool.http.HttpRequest createServerRequest(String openApi)
openApi
- urlServerOpenApi
public int getLogSaveDays()
public boolean openLogBack()
public static AgentExtConfigBean getInstance()
Copyright © 2017–2022. All rights reserved.