Examples of DelayCountEvent


Examples of com.alibaba.otter.shared.communication.model.statistics.DelayCountEvent

                                                                                                                10 * 1000);
    private static ScheduledThreadPoolExecutor scheduler;
    private NodeCommmunicationClient           nodeCommmunicationClient;

    public void sendIncDelayCount(final DelayCount delayCount) {
        DelayCountEvent event = new DelayCountEvent();
        event.setCount(delayCount);
        event.setAction(Action.INC);

        boolean result = delayCountStatsBuffer.offer(event);
        if (result) {
            logger.info("add IncDelayCount to send with {}", delayCount);
        } else {
View Full Code Here

Examples of com.alibaba.otter.shared.communication.model.statistics.DelayCountEvent

            logger.warn("add IncDelayCount failed by buffer is full with {}", delayCount);
        }
    }

    public void sendDecDelayCount(final DelayCount delayCount) {
        DelayCountEvent event = new DelayCountEvent();
        event.setCount(delayCount);
        event.setAction(Action.DEC);

        boolean result = delayCountStatsBuffer.offer(event);
        if (result) {
            logger.info("add sendDecDelayCount to send with {}", delayCount);
        } else {
View Full Code Here

Examples of com.alibaba.otter.shared.communication.model.statistics.DelayCountEvent

            logger.warn("add sendDecDelayCount failed by buffer is full with {}", delayCount);
        }
    }

    public void sendResetDelayCount(final DelayCount delayCount) {
        DelayCountEvent event = new DelayCountEvent();
        event.setCount(delayCount);
        event.setAction(Action.RESET);

        boolean result = delayCountStatsBuffer.offer(event);
        if (result) {
            logger.info("add sendResetDelayCount to send with {}", delayCount);
        } else {
View Full Code Here

Examples of com.alibaba.otter.shared.communication.model.statistics.DelayCountEvent

            }
        });
    }

    private void doSendDelayCountEvent() {
        DelayCountEvent event = null;
        while (true) { // 尝试从队列里获取一下数据,不阻塞,没有就退出,等下个5秒再检查一次
            try {
                event = delayCountStatsBuffer.take();
                nodeCommmunicationClient.callManager(event);
                logger.info("sendDelayCountEvent successed for {}", event);
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.