Searched refs:csn2 (Results 1 - 25 of 39) sorted by relevance

12

/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/replication/common/
H A DCSNTest.java85 CSN csn2 = new CSN(csn.toString());
87 assertEquals(csn, csn2,
89 assertEquals(csn2.toString(), str,
117 public void csnHashCode(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
119 assertEquals(csn1.hashCode(), csn2.hashCode());
124 public void csnEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
128 assertTrue(csn1.equals(csn2));
136 public void csnGetTimeSec(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
140 assertEquals(csn2.getTime()/1000, csn2
148 csnCompare(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
164 csnOlder(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
175 csnOlderOrEqual(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
186 csnNewer(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
197 csnNewerOrEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
359 compareToEquivalentToEquals(CSN csn1, CSN csn2) argument
365 hashCodesEqualWhenCSNsEqual(CSN csn1, CSN csn2) argument
374 hashCodesEqualWhenCompareToEqual(CSN csn1, CSN csn2) argument
[all...]
H A DCSNGeneratorTest.java50 CSN csn2 = generator.newCSN();
51 assertTrue(csn2.compareTo(csn1) > 0,
64 CSN csn2 = generator.newCSN();
65 assertTrue(csn2.compareTo(csn1) > 0,
81 CSN csn2 = generator.newCSN();
83 assertEquals(csn2.getSeqnum(), 0);
84 assertTrue(csn2.getTime() > csn1.getTime());
H A DMultiDomainServerStateTest.java43 private static final CSN csn2 = new CSN(4, 5, 6); field in class:MultiDomainServerStateTest
61 final String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:";
69 final String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";;o=test6:";
71 final String expected = ":;o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;";
80 assertTrue(state.update(dn2, csn2));
85 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2 + ";";
96 assertTrue(ss2.update(csn2));
100 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2 + ";";
109 state1.update(dn2, csn2);
114 assertSame(csn2, state
[all...]
H A DServerStateTest.java75 CSN csn2 = new CSN(csn1.getTime(), csn1.getSeqnum() + 1, csn1.getServerId());
76 CSN csn3 = new CSN(csn2.getTime(), csn2.getSeqnum(), (csn2.getServerId() + 1));
79 assertTrue(serverState.update(csn2));
83 CSN[] csns = { csn2, csn3 };
89 assertEquals(csn2.compareTo(serverState.getCSN(csn2.getServerId())), 0);
94 assertTrue(stringRep.contains(csn2.toString()));
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/replication/common/
H A DCSNTest.java85 CSN csn2 = new CSN(csn.toString());
87 assertEquals(csn, csn2,
89 assertEquals(csn2.toString(), str,
117 public void csnHashCode(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
119 assertEquals(csn1.hashCode(), csn2.hashCode());
124 public void csnEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
128 assertTrue(csn1.equals(csn2));
136 public void csnGetTimeSec(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
140 assertEquals(csn2.getTime()/1000, csn2
148 csnCompare(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
164 csnOlder(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
175 csnOlderOrEqual(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
186 csnNewer(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
197 csnNewerOrEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
359 compareToEquivalentToEquals(CSN csn1, CSN csn2) argument
365 hashCodesEqualWhenCSNsEqual(CSN csn1, CSN csn2) argument
374 hashCodesEqualWhenCompareToEqual(CSN csn1, CSN csn2) argument
[all...]
H A DCSNGeneratorTest.java50 CSN csn2 = generator.newCSN();
51 assertTrue(csn2.compareTo(csn1) > 0,
64 CSN csn2 = generator.newCSN();
65 assertTrue(csn2.compareTo(csn1) > 0,
81 CSN csn2 = generator.newCSN();
83 assertEquals(csn2.getSeqnum(), 0);
84 assertTrue(csn2.getTime() > csn1.getTime());
H A DMultiDomainServerStateTest.java43 private static final CSN csn2 = new CSN(4, 5, 6); field in class:MultiDomainServerStateTest
61 final String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:";
69 final String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";;o=test6:";
71 final String expected = ":;o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;";
80 assertTrue(state.update(dn2, csn2));
85 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2 + ";";
96 assertTrue(ss2.update(csn2));
100 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2 + ";";
109 state1.update(dn2, csn2);
114 assertSame(csn2, state
[all...]
H A DServerStateTest.java75 CSN csn2 = new CSN(csn1.getTime(), csn1.getSeqnum() + 1, csn1.getServerId());
76 CSN csn3 = new CSN(csn2.getTime(), csn2.getSeqnum(), (csn2.getServerId() + 1));
79 assertTrue(serverState.update(csn2));
83 CSN[] csns = { csn2, csn3 };
89 assertEquals(csn2.compareTo(serverState.getCSN(csn2.getServerId())), 0);
94 assertTrue(stringRep.contains(csn2.toString()));
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/replication/common/
H A DCSNTest.java85 CSN csn2 = new CSN(csn.toString());
87 assertEquals(csn, csn2,
89 assertEquals(csn2.toString(), str,
117 public void csnHashCode(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
119 assertEquals(csn1.hashCode(), csn2.hashCode());
124 public void csnEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
128 assertEquals(csn1, csn2);
136 public void csnGetTimeSec(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) throws Exception argument
140 assertEquals(csn2.getTime()/1000, csn2
148 csnCompare(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
164 csnOlder(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
175 csnOlderOrEqual(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
186 csnNewer(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
197 csnNewerOrEquals(CSN csn1, CSN csn2, CSN csn3, CSN csn4, CSN csn5) argument
359 compareToEquivalentToEquals(CSN csn1, CSN csn2) argument
365 hashCodesEqualWhenCSNsEqual(CSN csn1, CSN csn2) argument
374 hashCodesEqualWhenCompareToEqual(CSN csn1, CSN csn2) argument
[all...]
H A DCSNGeneratorTest.java50 CSN csn2 = generator.newCSN();
51 assertTrue(csn2.compareTo(csn1) > 0,
64 CSN csn2 = generator.newCSN();
65 assertTrue(csn2.compareTo(csn1) > 0,
81 CSN csn2 = generator.newCSN();
83 assertEquals(csn2.getSeqnum(), 0);
84 assertTrue(csn2.getTime() > csn1.getTime());
H A DMultiDomainServerStateTest.java44 private static final CSN csn2 = new CSN(4, 5, 6); field in class:MultiDomainServerStateTest
62 String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:";
68 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";;o=test6:", ":;o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;" },
85 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";" },
86 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;" },
103 assertTrue(state.update(dn2, csn2));
108 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2 + ";";
119 assertTrue(ss2.update(csn2));
123 final String expected = "o=test1:" + csn3 + ";o=test2:" + csn2
[all...]
H A DServerStateTest.java75 CSN csn2 = new CSN(csn1.getTime(), csn1.getSeqnum() + 1, csn1.getServerId());
76 CSN csn3 = new CSN(csn2.getTime(), csn2.getSeqnum(), (csn2.getServerId() + 1));
79 assertTrue(serverState.update(csn2));
83 CSN[] csns = { csn2, csn3 };
89 assertEquals(csn2.compareTo(serverState.getCSN(csn2.getServerId())), 0);
94 assertTrue(stringRep.contains(csn2.toString()));
/forgerock/opendj-b2.6/src/server/org/opends/server/replication/server/
H A DReplicationIteratorComparator.java51 ChangeNumber csn2 = o2.getChange().getChangeNumber();
53 return ChangeNumber.compare(csn1, csn2);
/forgerock/opendj2.6.2/src/server/org/opends/server/replication/server/
H A DReplicationIteratorComparator.java51 ChangeNumber csn2 = o2.getChange().getChangeNumber();
53 return ChangeNumber.compare(csn1, csn2);
/forgerock/opendj2-jel-hg/src/server/org/opends/server/replication/server/
H A DReplicationIteratorComparator.java51 ChangeNumber csn2 = o2.getChange().getChangeNumber();
53 return ChangeNumber.compare(csn1, csn2);
/forgerock/opendj2/src/server/org/opends/server/replication/common/
H A DCSN.java277 * number if {@code csn1} is older than {@code csn2}, zero if they have the
278 * same age, or a positive number if {@code csn1} is newer than {@code csn2}.
282 * @param csn2
284 * @return A negative number if {@code csn1} is older than {@code csn2}, zero
286 * newer than {@code csn2}.
288 public static int compare(CSN csn1, CSN csn2) argument
292 return csn2 == null ? 0 : -1;
294 else if (csn2 == null)
298 else if (csn1.timeStamp != csn2.timeStamp)
300 return csn1.timeStamp < csn2
323 diffSeqNum(CSN csn1, CSN csn2) argument
[all...]
H A DServerState.java386 CSN csn2 = ss2.serverIdToCSN.get(serverId);
387 if (csn2 != null)
389 diff += CSN.diffSeqNum(csn1, csn2);
/forgerock/opendj2-hg/src/server/org/opends/server/replication/common/
H A DCSN.java277 * number if {@code csn1} is older than {@code csn2}, zero if they have the
278 * same age, or a positive number if {@code csn1} is newer than {@code csn2}.
282 * @param csn2
284 * @return A negative number if {@code csn1} is older than {@code csn2}, zero
286 * newer than {@code csn2}.
288 public static int compare(CSN csn1, CSN csn2) argument
292 return csn2 == null ? 0 : -1;
294 else if (csn2 == null)
298 else if (csn1.timeStamp != csn2.timeStamp)
300 return csn1.timeStamp < csn2
323 diffSeqNum(CSN csn1, CSN csn2) argument
[all...]
H A DServerState.java386 CSN csn2 = ss2.serverIdToCSN.get(serverId);
387 if (csn2 != null)
389 diff += CSN.diffSeqNum(csn1, csn2);
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/replication/common/
H A DCSN.java305 * number if {@code csn1} is older than {@code csn2}, zero if they have the
306 * same age, or a positive number if {@code csn1} is newer than {@code csn2}.
310 * @param csn2
312 * @return A negative number if {@code csn1} is older than {@code csn2}, zero
314 * newer than {@code csn2}.
316 public static int compare(CSN csn1, CSN csn2) argument
320 return csn2 == null ? 0 : -1;
322 else if (csn2 == null)
326 else if (csn1.timeStamp != csn2.timeStamp)
328 return csn1.timeStamp < csn2
351 diffSeqNum(CSN csn1, CSN csn2) argument
[all...]
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/
H A DPersistentServerStateTest.java80 CSN csn2 = gen2.newCSN();
83 assertEquals(state.update(csn2), true);
93 assertEquals(csn2Saved, csn2,
94 "csn2 has not been saved or loaded correctly for " + dn);
H A DNamingConflictTest.java115 CSN csn2 = gen.newCSN();
118 entry.getDN(), csn2,
332 * - t2(csn2) replay SUBTREE DEL ou=parent, ....
337 * - replay t2(csn2) DEL ou=parent, ....
343 * - t2(csn2) DEL or SUBTREE DEL ou=parent, ....
397 CSN csn2 = gen.newCSN();
398 DeleteMsg delMsg = new DeleteMsg(parentEntry.getDN(), csn2, parentUUID);
472 CSN csn2 = gen.newCSN();
473 DeleteMsg delMsg = new DeleteMsg(parentEntry.getDN(), csn2, parentUUID);
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/
H A DPersistentServerStateTest.java80 CSN csn2 = gen2.newCSN();
83 assertEquals(state.update(csn2), true);
93 assertEquals(csn2Saved, csn2,
94 "csn2 has not been saved or loaded correctly for " + dn);
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/
H A DPersistentServerStateTest.java80 CSN csn2 = gen2.newCSN();
83 assertEquals(state.update(csn2), true);
93 assertEquals(csn2Saved, csn2,
94 "csn2 has not been saved or loaded correctly for " + dn);
H A DNamingConflictTest.java115 CSN csn2 = gen.newCSN();
117 replayMsg(modDnMsg(entry, entryUUID, parentUUID, csn2, "uid=simultaneous2"));
239 * - t2(csn2) replay SUBTREE DEL ou=parent, ....
244 * - replay t2(csn2) DEL ou=parent, ....
250 * - t2(csn2) DEL or SUBTREE DEL ou=parent, ....
267 CSN csn2 = gen.newCSN();
268 DeleteMsg delMsg = new DeleteMsg(parentEntry.getName(), csn2, parentUUID);
290 CSN csn2 = gen.newCSN();
291 DeleteMsg delMsg = new DeleteMsg(parentEntry.getName(), csn2, parentUUID);

Completed in 1085 milliseconds

12