Package com.alibaba.otter.common.push

Examples of com.alibaba.otter.common.push.PushException


    }

    public synchronized void init() {
        this.mediaSubscribeManager = SubscribeManagerFactory.getSubscribeManager(SubscribeType.MEDIA);
        if (this.mediaSubscribeManager == null) {
            throw new PushException("MediaDatasourceSupplier : mediaSubscribeManager is null, check the spring config");
        }

        String matrixStr = mediaSubscribeManager.fetchConfig(groupKey);
        this.haInfo = parse(matrixStr);
        this.mediaSubscribeManager.registerCallback(this.groupKey, subscribeCallback);
View Full Code Here


    }

    public DatasourceInfo fetchMaster() {
        synchronized (lock) {
            if (this.haInfo == null) {
                throw new PushException("haInfo is null, check the init phase");
            }
            return this.haInfo.getMaster();
        }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.common.push.PushException

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.