Commit Graph
44 Commits
Author SHA1 Message Date
leventov d897891bfb Great refactoring 2015-01-17 03:19:35 +07:00
leventov 96a0b57c66 HCOLL-285 Refactor Stateless client builders, MapInstanceConfig =>
Builder, removed addJsonConverter method from ChronicleMapBuilder
2015-01-02 00:36:30 +07:00
leventov 81f6142af7 Clearly separated notion of entries and chunks, averageKeySize()/ValueSize() instead of keySize()/valueSize(), minor fixes and refactorings 2014-12-26 05:22:54 +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
Rob Austin 03f3f58b91 imporved javadoc 2014-12-01 12:10:42 +00:00
Peter Lawrey 6d4b143903 Remove double and triple blank lines 2014-11-30 22:43:32 +02:00
Rob Austin 84a9581c7f HCOLL-218 ReplicatedChronicleMapTest appears to use too much resources - I've looked at other tests as well and have attempted to ensure that close is called on every test, also prompting the GC to run after each test. 2014-11-26 16:24:57 +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
Peter Lawrey a74596e32e Javadoc fixes 2014-11-15 16:54:44 +00:00
Rob Austin 49fc123755 HCOLL-81 made publicly a single ChronicleMapBuilder, that delegates onto internal implementations 2014-11-15 09:05:26 +00:00
Rob Austin e772737f36 HCOLL-81 renamed ChronicleMap to ChronicleMapOnHeapUpdatableBuilder as Peter wanted the OffHeapUpdated Builder to be the default ChronicleMapBuilder. 2014-11-14 12:59:03 +00:00
Rob Austin 6816810b90 HCOLL-200 fixed - testBootstrapAndHeartbeat 2014-11-11 16:46:32 +00:00
leventov c0d9099da9 Some renames in replication API, fixed potential issue with networkInterface configuration for udp multicast 2014-11-08 05:26:10 +03:00
leventov 49172e4b3b HCOLL-136 added keyMarshallers(), keySizeMarshaller() and valueSizeMarshaller() methods to Builder interfaces; removed factory field from SerializationBuilder and VanillaChronicleMap as unused 2014-11-07 16:15:37 +03:00
leventov fddacd1243 Removed AgileBytesMarshaller 2014-11-07 14:32:30 +03:00
leventov 4c86dae04f Made TcpConfig back immutable; Draw the borderline: Builders are mutable, Configs are immutable (hence ChronicleHashInstanceBuilder and StatelessClientBuilder renamed to Configs; improved TcpConfig static factory naming 2014-11-07 12:24:52 +03: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 9dec1ed4db reverted cff7c5bea8 2014-11-04 14:44:59 +00:00
Rob Austin a0c89935f5 reverted cff7c5bea8 2014-11-04 14:29:06 +00:00
leventov 20af7f5704 HCOLL-175 fix compilation issue (should be a part of the prev commit) 2014-10-29 16:26:02 +03:00
Rob Austin 70fdbb1fc6 HCOLL-167 moved classes to hash as they are used for set as well. 2014-10-29 12:59:18 +00:00
Rob Austin 2f73cf1f39 renamed common to hash 2014-10-29 12:11:24 +00: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
leventov 061fc5b53b HCOLL-172 Verified thath IntIntMultiMap now supports up to 2^32 entries; ShortShortMultiMap up to 2^16; ChronicleMap.Segment are now long-sized; attempt to support non-power-of-2 number of segments by HashSplitting (not tested yet); improved logic and dependencies between actualSegments(), actualEntriesPerSegments() and minSegments() methods in ChronicleMapBuilder; minor fixes 2014-10-25 00:45:59 +04:00
Peter Lawrey ea779997cf Remove <p/> from copyright messages 2014-10-24 11:30:25 +01:00
Rob Austin 8805c12051 HCOLL-167 added readme info for #### Stateless Client, and moved code to common. 2014-10-20 18:17:37 +01:00
Rob Austin 8e57eeafc2 HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases. 2014-10-20 17:19:27 +01:00
Rob Austin 1b40eb8147 HCOLL-167 now using the builder to create the Stateless client 2014-10-20 16:30:08 +01:00
Rob Austin c047e59d56 HCOLL-167 added isStateless 2014-10-20 15:02:05 +01:00
leventov 8f3452e974 HCOLL-136 HCOLL-137 javadoc updates and added ChronicleHashBuilder.disableReplication() method 2014-10-19 23:18:50 +04:00
Rob Austin 19574fd790 HCOLL-163 added public ChronicleSetBuilder<E> channel(ChannelProvider.ChronicleChannel chronicleChannel) { 2014-10-14 11:45:31 +01:00
Rob Austin d5f88842df HCOLL-163 corrected bad naming of Udp and TCP ReplicationConfig 2014-10-14 10:46:38 +01:00
Rob Austin 1014834668 HCOLL-163 kept the use of tcp() and udp() internal 2014-10-14 10:41:36 +01:00
leventov 1af8eb608d Merge branch 'master' of github.com:OpenHFT/Chronicle-Map
Conflicts:
	src/main/java/net/openhft/chronicle/set/ChronicleSetBuilder.java
2014-10-14 00:37:04 +04:00
leventov 8ae20aa6cc HCOLL-164 Made ChronicleSet zero overhead by value; fixed ChronicleSet.add() and remove() implementations; added ChronicleMapBuilder.valueMarshallerAndFactory(AgileBytesMarshaller, ObjectFactory) method 2014-10-14 00:30:43 +04:00
Rob Austin 30a1abef06 HCOLL-163 fixed some merge issues. 2014-10-13 17:59:54 +01:00
Rob Austin 9d8e84824c Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/net/openhft/chronicle/map/ChronicleMapBuilder.java
	src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java
2014-10-13 17:19:45 +01:00
Rob Austin 77cb5be05c HCOLL-163 Initial checking of - ( Move the identifier configuration from TCP/UDP Replication, back to the builder.), more on this JIRA coming soon... 2014-10-13 17:11:47 +01:00
leventov 6c02947ffb HCOLL-164 Exctracted ChronicleHashBuilder interface and pulled some classes up from n.o.chronicle.map package to n.o.chronicle. Fixed ChronicleSetBuilder.equals() implementation. 2014-10-13 18:13:31 +04:00
leventov c15efc0f40 Removed ChronicleSetBuilder.alignment() config because it is pointless for this abstraction 2014-10-12 16:10:17 +04:00
leventov 6a41086454 Removed getters from ChronicleMapBuilder API, improved some Javadocs and ChronicleMapBuilder.toString() representation 2014-10-12 16:07:43 +04:00
leventov 93b81569f0 Removed unused replicas() configuration 2014-10-12 13:47:12 +04:00
leventov 8ecbc3a091 Removed unused transactional() configuration 2014-10-12 13:46:15 +04:00
Rob Austin dd15d3f41a HCOLL-164 moved it to the set package 2014-10-10 18:30:26 +01:00