Package com.alibaba.otter.shared.common.model.config.channel

Examples of com.alibaba.otter.shared.common.model.config.channel.Channel


    }

    private FileLoadContext buildContext(Identity identity) {
        FileLoadContext context = new FileLoadContext();
        context.setIdentity(identity);
        Channel channel = configClientService.findChannel(identity.getChannelId());
        Pipeline pipeline = configClientService.findPipeline(identity.getPipelineId());
        context.setChannel(channel);
        context.setPipeline(pipeline);
        return context;
    }
View Full Code Here


    }

    private DbLoadContext buildContext(Identity identity) {
        DbLoadContext context = new DbLoadContext();
        context.setIdentity(identity);
        Channel channel = configClientService.findChannel(identity.getChannelId());
        Pipeline pipeline = configClientService.findPipeline(identity.getPipelineId());
        context.setChannel(channel);
        context.setPipeline(pipeline);
        return context;
    }
View Full Code Here

        context.put("logRecords", logRecords);
        context.put("paginator", paginator);
        context.put("searchKey", searchKey);
        context.put("pipelineId", pipelineId);
        Channel channel = channelService.findByPipelineId(pipelineId);
        context.put("channel", channel);
    }
View Full Code Here

    @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>();
View Full Code Here

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

    public void execute(@Param("channelId") Long channelId, Context context, Navigator nav) throws Exception {
        Channel channel = channelService.findById(channelId);
        if (channel.getStatus().isStart()) {
            nav.redirectTo(WebConstant.ERROR_FORBIDDEN_Link);
            return;
        }

        context.put("channelId", channelId);
View Full Code Here

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

    public void execute(@Param("dataMediaPairId") Long dataMediaPairId, @Param("pipelineId") Long pipelineId,
                        Context context, Navigator nav) throws Exception {
        Channel channel = channelService.findByPipelineId(pipelineId);
        if (channel.getStatus().isStart()) {
            nav.redirectTo(WebConstant.ERROR_FORBIDDEN_Link);
            return;
        }

        DataMediaPair dataMediaPair = dataMediaPairService.findById(dataMediaPairId);
        context.put("channelId", channel.getId());
        context.put("dataMediaPair", dataMediaPair);
    }
View Full Code Here

                start = sdf.parse(startTime);
                end = sdf.parse(endTime);
            }
        }

        Channel channel = channelService.findByPipelineId(pipelineId);
        Map<Long, DelayStatInfo> delayStatInfos = new HashMap<Long, DelayStatInfo>();
        if (null != start && null != end) {
            delayStatInfos = delayStatService.listTimelineDelayStat(pipelineId, start, end);
        }
View Full Code Here

                start = sdf.parse(startTime);
                end = sdf.parse(endTime);
            }
        }

        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) {
View Full Code Here

     * @param context
     * @throws WebxException
     */
    public void execute(@Param("channelId") Long channelId, @Param("pageIndex") int pageIndex,
                        @Param("searchKey") String searchKey, Context context, Navigator nav) throws Exception {
        Channel channel = channelService.findById(channelId);
        if (channel.getStatus().isStart()) {
            nav.redirectTo(WebConstant.ERROR_FORBIDDEN_Link);
            return;
        }
        context.put("channel", channel);
        context.put("pageIndex", pageIndex);
View Full Code Here

    @Resource(name = "dataMediaPairService")
    private DataMediaPairService dataMediaPairService;

    public void execute(@Param("dataMediaPairId") Long dataMediaPairId, Context context) throws Exception {
        DataMediaPair dataMediaPair = dataMediaPairService.findById(dataMediaPairId);
        Channel channel = channelService.findByPipelineId(dataMediaPair.getPipelineId());

        List<ColumnPair> columnPairs = dataMediaPair.getColumnPairs();
        List<ColumnGroup> columnGroups = dataMediaPair.getColumnGroups();
        // 暂时策略,只拿出list的第一个Group
        ColumnGroup columnGroup = new ColumnGroup();
        if (!CollectionUtils.isEmpty(columnGroups)) {
            columnGroup = columnGroups.get(0);
        }

        context.put("dataMediaPair", dataMediaPair);
        context.put("columnGroup", columnGroup);
        context.put("columnPairs", columnPairs);
        context.put("channelId", channel.getId());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.common.model.config.channel.Channel

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.