提交 1ea42887 编写于 作者: S serge-rider

#178 QM code cleanup

上级 c1e90bab
......@@ -44,7 +44,7 @@ public class QMMCollectorImpl extends DefaultExecutionHandler implements QMMColl
private static final Log log = Log.getLog(QMMCollectorImpl.class);
private static final long EVENT_DISPATCH_PERIOD = 250;
private static final int MAX_HISTORY_EVENTS = 1000;
private static final int MAX_HISTORY_EVENTS = 10000;
// Session map
private LongKeyMap<QMMSessionInfo> sessionMap = new LongKeyMap<>();
......
......@@ -32,20 +32,9 @@ public interface QMEventHistory {
long getHistorySize();
List<QMMetaEvent> readEventHistory(
@Nullable QMObjectType objectType,
@Nullable Date startDate,
@Nullable Date endDate,
int maxEvents);
List<QMMSessionInfo> getSessionHistory(
@Nullable String containerId,
@Nullable Date startDate,
@Nullable Date endDate,
int maxSessions);
List<QMMStatementExecuteInfo> getQueryHistory(
@Nullable String containerId,
@Nullable String sessionId,
@Nullable DBCExecutionPurpose queryPurpose,
@Nullable Date startDate,
@Nullable Date endDate,
......
......@@ -75,7 +75,7 @@ public class QMUtils {
return Collections.emptyList();
}
QMController queryManager = application.getQueryManager();
return queryManager == null ? Collections.<QMMetaEvent>emptyList() : queryManager.getPastMetaEvents();
return queryManager == null ? Collections.emptyList() : queryManager.getPastMetaEvents();
}
public static boolean isTransactionActive(DBCExecutionContext executionContext) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册