@Service public class NginxService extends BaseDataService
Constructor and Description |
---|
NginxService(WhitelistDirectoryService whitelistDirectoryService) |
Modifier and Type | Method and Description |
---|---|
com.alibaba.fastjson.JSONObject |
getItem(String path)
解析nginx
|
com.alibaba.fastjson.JSONObject |
getNgxConf()
获取nginx配置
name 修改后的服务名
status 状态:开启 open/ 关闭close
|
String |
getServiceName() |
List<com.alibaba.fastjson.JSONObject> |
list(String whitePath,
String fileName,
String showAll) |
void |
save(com.alibaba.fastjson.JSONObject object) |
com.alibaba.fastjson.JSONArray |
tree()
获取nginx树型图列表
|
deleteJson, getDataFilePath, getJSONObject, getJsonObjectById, saveJson, updateJson
public NginxService(WhitelistDirectoryService whitelistDirectoryService)
public List<com.alibaba.fastjson.JSONObject> list(String whitePath, String fileName, String showAll)
public com.alibaba.fastjson.JSONArray tree()
public com.alibaba.fastjson.JSONObject getItem(String path)
path
- nginx路径public com.alibaba.fastjson.JSONObject getNgxConf()
public String getServiceName()
public void save(com.alibaba.fastjson.JSONObject object)
Copyright © 2017–2022. All rights reserved.