Examples of ClockEntry


Examples of voldemort.versioning.ClockEntry

                fail("Should not see any exceptions.");
            }
            // check that the proxy writes were made to the original donor, node 4
            List<ClockEntry> clockEntries = new ArrayList<ClockEntry>(serverList.size());
            for(Integer nodeid: serverList)
                clockEntries.add(new ClockEntry(nodeid.shortValue(), System.currentTimeMillis()));
            VectorClock clusterXmlClock = new VectorClock(clockEntries, System.currentTimeMillis());
            for(Integer nodeid: serverList)
                adminClient.metadataMgmtOps.updateRemoteCluster(nodeid, currentCluster, clusterXmlClock);
            adminClient.setAdminClientCluster(currentCluster);
            checkForTupleEquivalence(adminClient, 4, testStoreNameRW, movingKeysList, baselineTuples, baselineVersions);
View Full Code Here

Examples of voldemort.versioning.ClockEntry

    @SuppressWarnings("deprecation")
    public static VectorClock getVersionedPutClock(long timeMs, int master, int... nodes) {
        List<ClockEntry> clockEntries = Lists.newArrayList();
        for(int node: nodes) {
            if(master >= 0 && node == master) {
                clockEntries.add(new ClockEntry((short) node, timeMs + 1));
            } else {
                clockEntries.add(new ClockEntry((short) node, timeMs));
            }
        }
        return new VectorClock(clockEntries, timeMs);
    }
View Full Code Here

Examples of voldemort.versioning.ClockEntry

            }
            // check that the proxy writes were made to the original donor, node
            // 1
            List<ClockEntry> clockEntries = new ArrayList<ClockEntry>(serverList.size());
            for(Integer nodeid: serverList)
                clockEntries.add(new ClockEntry(nodeid.shortValue(), System.currentTimeMillis()));
            VectorClock clusterXmlClock = new VectorClock(clockEntries, System.currentTimeMillis());
            for(Integer nodeid: serverList)
                adminClient.metadataMgmtOps.updateRemoteCluster(nodeid,
                                                                currentCluster,
                                                                clusterXmlClock);
View Full Code Here

Examples of voldemort.versioning.ClockEntry

            }
            // check that the proxy writes were made to the original donor, node
            // 1
            List<ClockEntry> clockEntries = new ArrayList<ClockEntry>(serverList.size());
            for(Integer nodeid: serverList)
                clockEntries.add(new ClockEntry(nodeid.shortValue(), System.currentTimeMillis()));
            VectorClock clusterXmlClock = new VectorClock(clockEntries, System.currentTimeMillis());
            for(Integer nodeid: serverList)
                adminClient.metadataMgmtOps.updateRemoteCluster(nodeid,
                                                                currentCluster,
                                                                clusterXmlClock);
View Full Code Here

Examples of voldemort.versioning.ClockEntry

                                          + ">");
                }
                short nodeId = Short.parseShort(parsedClockEntry[0]);
                long version = Long.parseLong(parsedClockEntry[1]);
                logger.trace("clock entry parsed: <" + nodeId + "> : <" + version + ">");
                versions.add(new ClockEntry(nodeId, version));
            }

            return new VectorClock(versions, timestamp);
        }
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.