Package com.alibaba.otter.manager.biz.statistics.throughput.param

Examples of com.alibaba.otter.manager.biz.statistics.throughput.param.TimelineThroughputCondition


     */

    public Map<AnalysisType, ThroughputInfo> listRealtimeThroughput(RealtimeThroughputCondition condition) {
        Assert.assertNotNull(condition);
        Map<AnalysisType, ThroughputInfo> throughputInfos = new HashMap<AnalysisType, ThroughputInfo>();
        TimelineThroughputCondition timelineCondition = new TimelineThroughputCondition();
        Date realtime = new Date(System.currentTimeMillis());
        timelineCondition.setPipelineId(condition.getPipelineId());
        timelineCondition.setType(condition.getType());
        timelineCondition.setStart(new Date(realtime.getTime() - condition.getMax() * 60 * 1000));
        timelineCondition.setEnd(realtime);
        List<ThroughputStatDO> throughputStatDOs = throughputDao.listTimelineThroughputStat(timelineCondition);
        for (AnalysisType analysisType : condition.getAnalysisType()) {
            ThroughputInfo throughputInfo = new ThroughputInfo();
            List<ThroughputStat> throughputStat = new ArrayList<ThroughputStat>();
            for (ThroughputStatDO throughputStatDO : throughputStatDOs) {
View Full Code Here


        }

        Channel channel = channelService.findByPipelineId(pipelineId);
        Map<Long, ThroughputInfo> throughputInfos1 = new LinkedHashMap<Long, ThroughputInfo>();
        Map<Long, ThroughputInfo> throughputInfos2 = new LinkedHashMap<Long, ThroughputInfo>();
        TimelineThroughputCondition condition1 = new TimelineThroughputCondition();
        TimelineThroughputCondition condition2 = new TimelineThroughputCondition();
        if (null != start && null != end) {
            condition1.setStart(start);
            condition1.setEnd(end);
            condition1.setType(ThroughputType.ROW);
            condition1.setPipelineId(pipelineId);
            condition2.setStart(start);
            condition2.setEnd(end);
            condition2.setType(ThroughputType.FILE);
            condition2.setPipelineId(pipelineId);
            throughputInfos1 = throughputStatService.listTimelineThroughput(condition1);
            throughputInfos2 = throughputStatService.listTimelineThroughput(condition2);
        }

        Long totalRecord1 = 0L;
View Full Code Here

TOP

Related Classes of com.alibaba.otter.manager.biz.statistics.throughput.param.TimelineThroughputCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.