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

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


    public void execute(@Param("pipelineId") Long pipelineId, Context context) throws Exception {
        Channel channel = channelService.findByPipelineId(pipelineId);
        RealtimeThroughputCondition condition1 = new RealtimeThroughputCondition();
        RealtimeThroughputCondition condition2 = new RealtimeThroughputCondition();
        ThroughputCondition condition11 = new ThroughputCondition();
        ThroughputCondition condition22 = new ThroughputCondition();
        List<AnalysisType> analysisType = new ArrayList<AnalysisType>();
        analysisType.add(AnalysisType.ONE_MINUTE);
        analysisType.add(AnalysisType.FIVE_MINUTE);
        analysisType.add(AnalysisType.FIFTEEN_MINUTE);
        condition1.setPipelineId(pipelineId);
        condition1.setAnalysisType(analysisType);
        condition1.setType(ThroughputType.FILE);
        condition2.setPipelineId(pipelineId);
        condition2.setAnalysisType(analysisType);
        condition2.setType(ThroughputType.ROW);
        condition11.setPipelineId(pipelineId);
        condition11.setType(ThroughputType.FILE);
        condition22.setPipelineId(pipelineId);
        condition22.setType(ThroughputType.ROW);
        Map<AnalysisType, ThroughputInfo> throughputInfos1 = throughputStatService.listRealtimeThroughput(condition1);
        Map<AnalysisType, ThroughputInfo> throughputInfos2 = throughputStatService.listRealtimeThroughput(condition2);
        ThroughputStat throughputStat1 = throughputStatService.findThroughputStatByPipelineId(condition11);
        ThroughputStat throughputStat2 = throughputStatService.findThroughputStatByPipelineId(condition22);
View Full Code Here


            for (Iterator it = key.iterator(); it.hasNext();) {
                Long pipelineId = (Long) it.next();
                Channel channel = channelService.findByPipelineId(pipelineId);
                // 判断channel状态,只有启动状态才进行判断超时时间
                if (!channel.getStatus().isStop()) {
                    ThroughputCondition condition = new ThroughputCondition();
                    condition.setPipelineId(pipelineId);
                    condition.setType(ThroughputType.ROW);
                    ThroughputStat throughputStat = throughputStatService.findThroughputStatByPipelineId(condition);

                    if (null != throughputStat.getGmtModified()) {
                        Date now = new Date();
                        long time = now.getTime() - throughputStat.getGmtModified().getTime();
View Full Code Here

                delayStat.setDelayTime(0L);
                delayStat.setGmtModified(pipeline.getGmtModified());
            }
            delayStats.put(pipeline.getId(), delayStat);
            mainstemDatas.put(pipeline.getId(), arbitrateViewService.mainstemData(channel.getId(), pipeline.getId()));
            ThroughputCondition condition = new ThroughputCondition();
            condition.setPipelineId(pipeline.getId());
            condition.setType(ThroughputType.ROW);
            ThroughputStat throughputStat = throughputStatService.findThroughputStatByPipelineId(condition);
            throughputStats.put(pipeline.getId(), throughputStat);
            List<AlarmRule> alarmRules = alarmRuleService.getAlarmRules(pipeline.getId());
            alarmRuleStats.put(pipeline.getId(), alarmRules);
            PositionEventData positionData = arbitrateViewService.getCanalCursor(pipeline.getParameters().getDestinationName(),
View Full Code Here

        if (CollectionUtils.isEmpty(rules)) {
            return;
        }
        Long pipelineId = rules.get(0).getPipelineId();

        ThroughputCondition condition = new ThroughputCondition();
        condition.setPipelineId(pipelineId);
        condition.setType(ThroughputType.ROW);
        ThroughputStat stat = throughputStatService.findThroughputStatByPipelineId(condition);

        long latestSyncTime = 0L;
        if (stat != null && stat.getGmtModified() != null) {
            Date modifiedDate = stat.getGmtModified();
View Full Code Here

TOP

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

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.