Search in sources :

Example 1 with AgentStatDataPointList

use of com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPointList in project pinpoint by naver.

the class AgentStatMapperV2 method filter.

private boolean filter(T candidate) {
    if (candidate instanceof AgentStatDataPointList) {
        AgentStatDataPointList<AgentStatDataPoint> agentStatDataPointList = (AgentStatDataPointList) candidate;
        List<AgentStatDataPoint> list = agentStatDataPointList.getList();
        for (AgentStatDataPoint agentStatDataPoint : list) {
            long timestamp = agentStatDataPoint.getTimestamp();
            if (!this.filter.filter(timestamp)) {
                return false;
            }
        }
        return true;
    } else {
        long timestamp = candidate.getTimestamp();
        return this.filter.filter(timestamp);
    }
}
Also used : AgentStatDataPointList(com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPointList) AgentStatDataPoint(com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPoint)

Aggregations

AgentStatDataPoint (com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPoint)1 AgentStatDataPointList (com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPointList)1