Package com.alibaba.otter.node.etl.common.jmx.StageAggregation

Examples of com.alibaba.otter.node.etl.common.jmx.StageAggregation.AggregationItem


                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                                               StageType.SELECT,
                                                               new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            arbitrateEventService.selectEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
                                logger.error(String.format("[%s] selectwork executor is error! data:%s", pipelineId,
View Full Code Here


    public void test_normal() {
        StageAggregation aggregation = new StageAggregation(256);

        for (int i = 0; i < 128; i++) {
            long now = System.currentTimeMillis();
            aggregation.push(new AggregationItem(now - 10 - RandomUtils.nextInt(100), now));
            LockSupport.parkNanos(1000 * 1000L);
        }

        LockSupport.parkNanos(2000 * 1000 * 1000L);

        for (int i = 0; i < 200; i++) {
            long now = System.currentTimeMillis();
            aggregation.push(new AggregationItem(now - 10 - RandomUtils.nextInt(100), now));
            LockSupport.parkNanos(1000 * 1000L);
        }

        String result = aggregation.histogram();
        System.out.println(result);
View Full Code Here

                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                                               StageType.SELECT,
                                                               new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            arbitrateEventService.selectEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
                                logger.error(String.format("[%s] selectwork executor is error! data:%s", pipelineId,
View Full Code Here

                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                                               StageType.LOAD,
                                                               new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            // 处理完成后通知single已完成
                            arbitrateEventService.loadEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
View Full Code Here

                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                                               StageType.EXTRACT,
                                                               new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            arbitrateEventService.extractEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
                                logger.error(String.format("[%d] extractwork executor is error! data:%s", pipelineId,
View Full Code Here

                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                                               StageType.TRANSFORM,
                                                               new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            // 处理完成后通知single已完成
                            arbitrateEventService.transformEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
View Full Code Here

                            if (profiling) {
                                Long profilingEndTime = System.currentTimeMillis();
                                stageAggregationCollector.push(pipelineId,
                                    StageType.SELECT,
                                    new AggregationItem(profilingStartTime, profilingEndTime));
                            }
                            arbitrateEventService.selectEvent().single(etlEventData);
                        } catch (Throwable e) {
                            if (!isInterrupt(e)) {
                                logger.error(String.format("[%s] selectwork executor is error! data:%s",
View Full Code Here

TOP

Related Classes of com.alibaba.otter.node.etl.common.jmx.StageAggregation.AggregationItem

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.