Package com.fasterxml.clustermate.api

Examples of com.fasterxml.clustermate.api.KeyRange.overlapsWith()


         */
        NodeState localState = _cluster.getLocalState();       
        List<E> entries;

        KeyRange localRange = localState.totalRange();
        if (localRange.overlapsWith(range)) {
            entries = _listEntries(range, since, upUntil, _maxToListPerRequest, timestamp);
        /*
System.err.println("Sync for "+_localState.getRangeActive()+" (slice of "+range+"); between "+sinceL+" and "+upUntil+", got "+entries.size()+"/"
+_stores.getEntryStore().getEntryCount()+" entries... (time: "+_timeMaster.currentTimeMillis()+")");
*/
 
View Full Code Here


         */
        NodeState localState = _cluster.getLocalState();       
        List<E> entries;

        KeyRange localRange = localState.totalRange();
        if (localRange.overlapsWith(range)) {
            entries = _listEntries(range, since, upUntil, _maxToListPerRequest, timestamp);
        /*
System.err.println("Sync for "+_localState.getRangeActive()+" (slice of "+range+"); between "+sinceL+" and "+upUntil+", got "+entries.size()+"/"
+_stores.getEntryStore().getEntryCount()+" entries... (time: "+_timeMaster.currentTimeMillis()+")");
*/
 
View Full Code Here

        public RemoteCluster finish(TimeMaster timeMaster, NodeState localState)
        {
            List<RemoteClusterNode> overlapping = new ArrayList<RemoteClusterNode>();
            final KeyRange localRange = localState.totalRange();
            for (RemoteClusterNode node : _nodes.values()) {
                if (localRange.overlapsWith(node.getTotalRange())) {
                    overlapping.add(node);
                }
            }
            if (overlapping.isEmpty()) {
                return null;
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.