Commit Graph

159 Commits

Author SHA1 Message Date
Alec Grieser f2221cd16e updated documentation to reflect startNetwork starting a thread 2017-12-15 15:59:51 -08:00
A.J. Beamon 11dba3e8ef Update a bunch of tests and some documentation to use dispose. 2017-12-15 15:19:23 -08:00
Alec Grieser 916105cd35 java now names the network thread "fdb-network-thread" 2017-12-15 12:23:01 -08:00
A.J. Beamon 83b21cc57b Set the thread name for threads created by our default executor in the Java bindings. 2017-12-15 11:00:29 -08:00
A.J. Beamon 33558e2757 Fix links to general FDB documentation. De-double-pluralize Transaction. 2017-12-15 09:19:01 -08:00
A.J. Beamon 8b84d5e7d9 Testing the removal of some pre/post build events in our fdb_java vcxproj file. These built the Java bindings jar, but only for the old bindings that no longer exist. 2017-12-15 08:28:29 -08:00
A.J. Beamon e8c902f57a Add -f to rm command in javadoc_clean makefile target 2017-12-15 08:01:25 -08:00
A.J. Beamon 76ddf38880 Normalize whitespace 2017-12-14 14:53:07 -08:00
Alec Grieser e98b6f4813 fixed indentation in java makefile so that targets get built and so on and so forth
"plus ça change, plus c'est la même chose"
2017-12-14 14:47:53 -08:00
A.J. Beamon 6cef57d695 Merge commit '786c229240cdcdd194212ed8c06f60581f437c84' into java-remove-old-bindings
# Conflicts:
#	bindings/java/src-completable/junit/com/apple/foundationdb/tuple/ArrayUtilTests.java
#	bindings/java/src-completable/main/com/apple/foundationdb/Cluster.java
#	bindings/java/src-completable/main/com/apple/foundationdb/Database.java
#	bindings/java/src-completable/main/com/apple/foundationdb/FDB.java
#	bindings/java/src-completable/main/com/apple/foundationdb/FDBDatabase.java
#	bindings/java/src-completable/main/com/apple/foundationdb/FDBTransaction.java
#	bindings/java/src-completable/main/com/apple/foundationdb/JNIUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/KeySelector.java
#	bindings/java/src-completable/main/com/apple/foundationdb/LocalityUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/NativeFuture.java
#	bindings/java/src-completable/main/com/apple/foundationdb/OptionsSet.java
#	bindings/java/src-completable/main/com/apple/foundationdb/Range.java
#	bindings/java/src-completable/main/com/apple/foundationdb/RangeQuery.java
#	bindings/java/src-completable/main/com/apple/foundationdb/ReadTransactionContext.java
#	bindings/java/src-completable/main/com/apple/foundationdb/Transaction.java
#	bindings/java/src-completable/main/com/apple/foundationdb/TransactionContext.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/AsyncUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/Cancellable.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/CloneableException.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/DirectoryLayer.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/DirectoryPartition.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/DirectorySubspace.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/DirectoryUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/MismatchedLayerException.java
#	bindings/java/src-completable/main/com/apple/foundationdb/directory/PathUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/subspace/Subspace.java
#	bindings/java/src-completable/main/com/apple/foundationdb/tuple/ByteArrayUtil.java
#	bindings/java/src-completable/main/com/apple/foundationdb/tuple/Tuple.java
#	bindings/java/src-completable/main/com/apple/foundationdb/tuple/TupleUtil.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/AsyncDirectoryExtension.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/AsyncStackTester.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/BlockingBenchmark.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/ConcurrentGetSetGet.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/Context.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/ContinuousSample.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/DirectoryExtension.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/DirectoryTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/DirectoryUtil.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/Example.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/Instruction.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/IterableTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/LocalityTests.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/ParallelRandomScan.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/RangeTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/ReadWrite.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/SerialInsertion.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/SerialIteration.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/SerialTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/StackEntry.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/StackTester.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/StackUtils.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/TupleTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/VersionstampSmokeTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/WatchTest.java
#	bindings/java/src-completable/test/com/apple/foundationdb/test/WhileTrueTest.java
#	bindings/java/src/test/com/apple/foundationdb/test/AsyncPerformanceTester.java
2017-12-14 13:50:56 -08:00
Alec Grieser fd10562b55 made tabulation consistent for two lines 2017-12-14 13:36:34 -08:00
Alec Grieser c88b30b815 SPACES TO TABS I CAN'T EVEN RIGHT NOW 2017-12-14 11:49:47 -08:00
Alec Grieser c7a730006c I have had it with these monkey-fighting whitespaces changes in this Monday-to-Friday repo 2017-12-14 11:45:08 -08:00
Alec Grieser 311bb89258 for some reason, my IDE wants to insert spaces after a tab instead of a tab and I don't like it 🤬 2017-12-14 11:35:11 -08:00
Alec Grieser 87b769f446 rename methods on iterators to include "remaining" ; removed unused version of mapIterable 2017-12-14 11:33:17 -08:00
Alec Grieser 616e27e476 added redundant modifier check to style and then fixed errors it turned up 2017-12-14 11:07:19 -08:00
Alec Grieser 9b1bcea525 added javadocs for DONE, READY_TRUE, and READY_FALSE ; used it in some places instead of CompletableFuture.completedFuture 2017-12-14 10:10:11 -08:00
Alec Grieser 9934b2e09a believe it or not, for once, it's a whitespace only change, spaces -> tabs 🤮 2017-12-14 09:57:24 -08:00
Alec Grieser 08127bd340 Merge remote-tracking branch 'origin/java-add-missing-dispose' into java-future-cleanup 2017-12-13 16:28:15 -08:00
Alec Grieser 33f8b2f7cf added a style guide ; fixed errors found from the style guide ; updated tests to use java 8 closures 2017-12-13 16:16:31 -08:00
A.J. Beamon a5d63ce1e1 Patch up the makefiles and remove references to the completable bindings 2017-12-13 11:07:19 -08:00
A.J. Beamon d6e4eed5f1 Move Java src-completable to src 2017-12-13 10:18:44 -08:00
A.J. Beamon 59799147bd Remove Java src folder 2017-12-13 10:17:53 -08:00
A.J. Beamon 8ea671196f Add missing } in javadoc for Transaction.close 2017-12-13 08:56:35 -08:00
A.J. Beamon 4d749e932c Update known testers now that completable bindings don't support API versions older than 510 2017-12-12 11:16:38 -08:00
Alec Grieser 4d734a4925 Merge branch 'java-add-missing-dispose' into java-future-cleanup 2017-12-12 11:11:46 -08:00
A.J. Beamon b831e869e2 Don't call BoundaryIterator.close if it's already closed. 2017-12-12 10:34:01 -08:00
A.J. Beamon 84a428972e Limit to API version 510. Document the FDB.warnOnUnclosed function. 2017-12-12 09:57:58 -08:00
A.J. Beamon b354c7fc00 Remove unused constructor, add close() to BoundaryIterator finalizer for now, remove unused debug method from NativeFuture 2017-12-12 09:24:34 -08:00
A.J. Beamon db4c3cf740 Minor documentation and import edits 2017-12-11 18:28:17 -08:00
A.J. Beamon f76e6729fc Revert whitespace change 2017-12-11 15:01:28 -08:00
A.J. Beamon 171a7f34ea Replace Disposable with AutoCloseable. Update documentation of close (formerly dispose). Some other small cleanup items. 2017-12-11 14:54:22 -08:00
Alec Grieser 51e7e41256 Merge remote-tracking branch 'origin/java-add-missing-dispose' into java-future-cleanup 2017-12-11 08:55:15 -08:00
Alec Grieser 154000e2c3 move most old-style closures to Java 8-style closures 2017-12-11 08:54:35 -08:00
A.J. Beamon ab431004a3 Database documentation was updated in the wrong place. 2017-12-08 15:37:24 -08:00
A.J. Beamon 0c0069a02e Various fixes to stack tester Transaction reference counting. 2017-12-08 14:52:01 -08:00
A.J. Beamon 570b60fe53 isDone check in NativeFuture.dispose, try/finally for finalizers, some rewriting of stack tester context transaction management. 2017-12-06 13:06:57 -08:00
A.J. Beamon f456c67bda Merge branch 'master' into java-add-missing-dispose
# Conflicts:
#	bindings/java/src-completable/main/com/apple/foundationdb/Cluster.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/AsyncIterator.java
#	bindings/java/src-completable/main/com/apple/foundationdb/async/AsyncUtil.java
2017-12-06 10:22:39 -08:00
A.J. Beamon 157e32fe2e Various java cleanup. Convert some anonymous classes to lambdas, remove some unnecessary keywords from some interfaces, fix some documentation issues, etc. 2017-12-06 10:16:43 -08:00
A.J. Beamon bfa701ac8e Add a finalizer warning to all Disposable objects. Futures now dispose when marshalled (rather than just release memory). Range futures gets disposed as soon as their results are actually marshalled (in RangeQuery). AsyncIterator is no longer disposable, but a new interface DisposableAsyncIterator provides a disposable version. getBoundaryKeys returns a DisposableAsyncIterator rather than an AsyncIterable. Update the stack testers to dispose of their objects. 2017-12-06 09:58:53 -08:00
Alec Grieser 773a239830 whitespace fixes 🤮 2017-12-05 08:45:40 -08:00
Alec Grieser 8971f35a73 fixed some errors found by inspection 2017-12-04 10:16:57 -08:00
Alec Grieser 9d5aa5fc96 pass -Xlint to javac ; fix kvetching 2017-12-04 09:56:35 -08:00
A.J. Beamon 3ded271153 Dispose of Cluster objects in fdb.open() 2017-11-17 12:21:14 -08:00
Alec Grieser f657be8136 add a space to match the bracing style used in this file 2017-11-17 09:55:11 -08:00
A.J. Beamon 0981e0dcdd Dispose of newly created transactions if transfer() fails. 2017-11-17 09:47:17 -08:00
A.J. Beamon 5b5850e097 The dispose in Database.createTransaction was supposed to happen on error, not in the finally block 2017-11-16 10:50:13 -08:00
A.J. Beamon db017317ac Update the Java bindings to call add missing dispose calls. 2017-11-15 15:56:50 -08:00
A.J. Beamon d174e05bac Merge pull request #180 from cie/bindings-versionstamps-in-tuples
<rdar://problem/25560444> [Feature] Versionstamped keys and tuple/directory incompatibility
2017-11-06 16:39:17 -08:00
A.J. Beamon fee6734e71 Add braces around multiline if block 2017-11-06 16:38:32 -08:00