Examples of RealtimeThroughputCondition


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

    @Resource(name = "channelService")
    private ChannelService        channelService;

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.