Commit Graph
74 Commits
Author SHA1 Message Date
leventov 9accabe11c Tiny optimizations in ReplicatedChronicleMap 2014-12-19 16:09:50 +07:00
Rob Austin 005f4d7a7e HCOLL-246 Fixed - Tcp Replication fails with large values or entries sizes that don't included internal replication bytes" 2014-12-16 15:28:52 +00:00
leventov ae47c7b8fa HCOLL-243 fixed replication issue -- we should PUT remote removed key into the map even it was absent 2014-12-16 00:09:43 +07:00
leventov afb223be67 Fixed a bug in ReplicatedChronicleMap.removeWithoutLock() 2014-12-15 22:16:55 +07:00
leventov c935c4b05f HCOLL-171 HCOLL-206 HCOLL-247 improved hashing algorithm (now murmur3), implemented ByteBufferInterop, some improvements in existing marshallers 2014-12-13 15:25:00 +07:00
leventov 872d34e230 JLANG-39 HCOLL-214 refactored builders (leaved a single builder class), fixes in DataValueBytesMarshallers implementation 2014-12-11 20:31:57 +07:00
Peter Lawrey 692edb3ceb Remove an unused field and parameter 2014-12-10 18:47:37 +00:00
Rob Austin 7cc79ea2c3 HCOLL-234 fixing CHMUseCaseTest 2014-12-09 14:16:52 +00:00
Rob Austin 767543cea6 HCOLL-234 as agreeded changed method name to "putWithMapping()" 2014-12-09 12:57:10 +00:00
Rob Austin 95b21ba2f8 HCOLL-234 fixing CHMUseCaseTest 2014-12-09 11:27:08 +00:00
Peter Lawrey 13e9610a73 Add tests for larger entries 2014-12-08 16:17:27 +00:00
leventov ec6e99224d Remote udpates remove positions from modifications iterators (previously was not touching modification iterators; fixed a small bug in ReplicatedCHronicleMap.removeWithoutUnlock(); fixed soak tests with random data 2014-12-03 20:26:52 +07:00
Rob Austin c4417ddbe4 adding net.openhft.chronicle.map.NoTcpReplicationSoakTest 2014-12-02 20:08:26 +00:00
Peter Lawrey 1e40c765f8 Remove blank lines at the start of methods and loops. 2014-11-30 22:48:57 +02:00
Peter Lawrey adae564595 Remove blank lines before } 2014-11-30 22:46:22 +02:00
Peter Lawrey 6d4b143903 Remove double and triple blank lines 2014-11-30 22:43:32 +02:00
Peter Lawrey 6dc1792f19 Improve test robustness and park flaky tests. 2014-11-30 22:05:33 +02:00
leventov 258347ed71 HCOLL-185 fixed a number of bugs in old code and new VanillaChronicleMap and ReplicatedChronicleMap (generalized instance/bytes queries), refactoring and minor fixes, switched to bytes queries for stateless client server 2014-11-29 20:39:00 +07:00
leventov 40a3080ac9 HCOLL-185 refactored VanillaChronicleMap and ReplicatedChronicleMap; split BytesMapEventListener from MapEventListener; many bug fixes and optimizations; Stateless client queries without serialization/deserialization not working yet 2014-11-28 00:05:49 +07:00
Rob Austin 5db55e566b reverted this change back ( allow event listener to be NULL ), but instead introduced "the NOP event listener" 2014-11-24 10:37:55 +00:00
Rob Austin f7f886938b allow event listener to be NULL 2014-11-24 10:10:34 +00:00
Rob Austin bf65306246 HCOLL-134 returned the remoteIdentifier back to a BYTE and improved the MapByName 2014-11-20 12:18:07 +00:00
Rob Austin 266da0be31 HCOLL-134 added the following method - bootstapOnlyLocalEntries(boolean bootstapOnlyLocalEntries) 2014-11-18 18:40:01 +00:00
Rob Austin bfc2dcac25 HCOLL-81 StatelessClient : Add a visitor pattern to Chronicle Map 2014-11-13 18:55:15 +00:00
leventov f912262b2b HCOLL-202 fixed a bug in ReplicatedChronicleMap.remotePut() 2014-11-13 12:27:51 +03:00
Peter Lawrey f5f2139428 Fix a thread safety issue ThreadLocalCopies triggered when running StringsMapMain. 2014-11-12 21:04:42 +00:00
Rob Austin ed6611b5cc HCOLL-200 removed trace code 2014-11-11 14:33:05 +00:00
Rob Austin 308abc5b72 HCOLL-200 Set tcp replication dirty when using acquireUsing 2014-11-11 14:01:00 +00:00
Rob Austin 339ab05b4c HCOLL-200 Set tcp replication dirty when using acquireUsing 2014-11-11 10:53:39 +00:00
leventov daac52ba35 Changed acquireUsingLocked and getUsingLocked behaviour -- now throwing IllegalState if the given value is not reused 2014-11-10 18:14:30 +03:00
leventov 9be0d58baf Reduced accessability of multimaps 2014-11-10 18:12:47 +03:00
Peter Lawrey 6e2881a014 HCOLL-194 Add support for new MultiMaps in the future. 2014-11-10 14:12:01 +00:00
Rob Austin c2e85064d6 HCOLL-192 added test case net.openhft.chronicle.map.EventListenerTestWithTCPSocketReplication.testRemoteNotifyRemove() - and implemented its functionality. 2014-11-07 18:46:26 +00:00
Rob Austin 67379f0c8b HCOLL-192 onPut now returns the replacedValue ( previous value ) 2014-11-07 13:42:08 +00:00
leventov 09008f16fe Moved more classes from net.openhft.chronicle.hash.serialization to .internal 2014-11-07 14:40:11 +03:00
Rob Austin 28d20d03b6 HCOLL-192 I've reviewed the code around this, it looks like this size constraint was a hang up from when we only allowed replicated entries to be no larger than max unsigned short, the underlying code was changed recently when we introduced the stateless client to allow much larger payloads. As such I've have increased this constrain to Integer.MAX_VALUE 2014-11-07 11:14:33 +00:00
leventov 4a51b129a3 Many renames, API refactorings, classes/interfaces made private to net.openhft.chronicle.map package
Conflicts:
	src/main/java/net/openhft/chronicle/map/StatelessChronicleMap.java
	src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java
2014-11-07 12:10:40 +03:00
Rob Austin 912308c4d3 HCOLL-191 - added tests and fix for reading keys and values 2014-11-06 22:45:18 +00:00
Rob Austin babd62e431 HCOLL-191 -Checking in a possible fix for this issue - "EventListener is not called correctly for a replicated map", but will require more testing. 2014-11-06 18:28:38 +00:00
Rob Austin 39cf492171 HCOLL-155 implemented lookupUsing(K key, V value, LockType lockTypeType) for ReplicatedVanChronMap 2014-11-04 16:53:39 +00:00
Rob Austin 9dec1ed4db reverted cff7c5bea8 2014-11-04 14:44:59 +00:00
Rob Austin a0c89935f5 reverted cff7c5bea8 2014-11-04 14:29:06 +00:00
Rob Austin ef0cd0f96f HCOLL-155 removed acquireUsingReadLocked and acquireUsingWriteLocked to WriteContext<K,V> acquireUsingLocked(@NotNull K key, @NotNull V usingValue); and ReadContext<K,V> getUsingLocked(@NotNull K key, @NotNull V usingValue); 2014-11-02 18:35:26 +00:00
Rob Austin 118ed1676f HCOLL-155 added two of peters tests and them implemented the code accordingly - the test are net.openhft.chronicle.map.ChronicleMapTest#testOffheapAcquireUsingLocked and net.openhft.chronicle.map.ChronicleMapTest#testOnheapAcquireUsingLocked 2014-11-02 00:16:02 +00:00
Peter Lawrey bb94e0e547 Consolidate segment headers to reduce TLB misses. Re-tune the calculated number of segments based on the size of data. 2014-10-31 17:33:10 +00:00
leventov f7edfce81b HCOLL-159 moved net.openhft.chronicle.hash.threadlocal package to Lang since it isn't specific to ChronicleMap at all 2014-10-29 16:11:21 +03:00
Rob Austin 2f73cf1f39 renamed common to hash 2014-10-29 12:11:24 +00:00
leventov 3cf9b2e722 Employ MemoryUnit API 2014-10-28 06:44:38 +03:00
leventov 16f1e6aa46 Moved Replicator and Replicators to separate files for more convenient Intellij browsing 2014-10-28 04:12:36 +03:00
leventov 0c45ee8aff HCOLL-136 HCOLL-137 HCOLL-153 HCOLL-160
1. Separated ChronicleMapBuilder (for non-Byteable values) and
OffHeapUpdatableChronicleMapBuilder (for Byteable values) with common base
AbstractChronicleMapBuilder (public just to inherit common javadocs)

2. Added ChronicleHashBuilder.keyDeserializationFactory() and
AbstractChronicleMapBuilder.valueDeserializationFactory() (former
ChronicleMapBuilder.valueFactory() method)

3. Changed ChronicleMap.get(), getUsing() API and impl to what was
initially intended - now they ALWAYS returns null, if key is absent

4. acquireUsing() API, common for the cases with Byteable and non-Byteable
values: puts defaultValue or defaultValueProvider.get(key), if the key is
absent, then acquireUsing() behaves just like getUsing()

5. For off0heap updatable ChronicleMaps (Byteable values), added
prepareValueBytes() configuration which formalizes zeroing out value bytes

6. Javadoc fixes and improvements
2014-10-27 20:15:26 +03:00