@Repository public class EventInfoCollection extends MongodbCollection
db, logger| 构造器和说明 |
|---|
EventInfoCollection() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<MonitorEventInfoModel> |
_search(String eventId,
String eventName,
Date start,
Date end,
String listenerClass,
String mdcValue,
String content,
Integer pageNo,
Integer pageSize,
List<NodeInfo> nodeInfos,
Map<String,NodeInfo> filterNodeMap,
Set<String> filterNodeIds) |
void |
createIndexes() |
String |
getCollectionName() |
IndexConfigCollection |
getIndexConfigCollection() |
NodeInfoCollection |
getNodeInfoCollection() |
long |
houseKeeping(int keepdays)
数据清理
|
void |
insert(List<MonitorEventInfo> infos) |
MonitorEventInfoModel |
queryById(String id) |
MonitorEventInfoModels |
search(String eventId,
String eventName,
Date start,
Date end,
String listenerClass,
String mdcValue,
String content,
Integer pageNo,
Integer pageSize,
NodeInfo nodeInfo) |
void |
setIndexConfigCollection(IndexConfigCollection indexConfigCollection) |
void |
setNodeInfoCollection(NodeInfoCollection nodeInfoCollection) |
deleteMany, deleteOne, find, getCollection, getDb, insertMany, insertOne, isEmpty, isNotEmpty, setDb, updateMany, updateOnepublic NodeInfoCollection getNodeInfoCollection()
public void setNodeInfoCollection(NodeInfoCollection nodeInfoCollection)
public IndexConfigCollection getIndexConfigCollection()
public void setIndexConfigCollection(IndexConfigCollection indexConfigCollection)
public void insert(List<MonitorEventInfo> infos)
public String getCollectionName()
getCollectionName 在类中 MongodbCollection@PostConstruct public void createIndexes()
createIndexes 在类中 MongodbCollectionpublic MonitorEventInfoModels search(String eventId, String eventName, Date start, Date end, String listenerClass, String mdcValue, String content, Integer pageNo, Integer pageSize, NodeInfo nodeInfo)
public MonitorEventInfoModel queryById(String id)
public long houseKeeping(int keepdays)
keepdays - 保留多少天内的数据Copyright © 2018 Jue Ming. All rights reserved.