Package org.apache.sling.discovery.TopologyEvent

Examples of org.apache.sling.discovery.TopologyEvent.Type


            throw new IllegalStateException("oldView must not be null");
        }
        TopologyViewImpl newView = (TopologyViewImpl) getTopology();
        TopologyViewImpl oldView = this.oldView;

        Type difference = newView.compareTopology(oldView);
        if (difference == null) {
            // then dont send any event then
            logger.debug("handlePotentialTopologyChange: identical views. not informing listeners");
            return;
        } else {
View Full Code Here


        }
        TopologyViewImpl other = (TopologyViewImpl) obj;
        if (this.current != other.current) {
            return false;
        }
        Type diff = compareTopology(other);
        return diff == null;
    }
View Full Code Here

        this.acceptedTypes = acceptedTypes;
    }

    public synchronized void assertOk(TopologyEvent event) {
        for (int i = 0; i < acceptedTypes.length; i++) {
            Type aType = acceptedTypes[i];
            if (aType == event.getType()) {
                // perfect
                Integer c = counts.remove(aType);
                if (c == null) {
                    counts.put(aType, new Integer(1));
View Full Code Here

TOP

Related Classes of org.apache.sling.discovery.TopologyEvent.Type

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.