summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-12-20 20:23:19 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-12-20 20:23:19 (GMT)
commit4ecf02f6f6a7c79e4e0d57ea2058ccb5e760f992 (patch)
tree6ceda61abbb5b935f20bebf1625794733469cf37 /java
parentd989a0b1cb3d6abeb71d1e37fae5a6d353fb7fc2 (diff)
downloadhdf5-4ecf02f6f6a7c79e4e0d57ea2058ccb5e760f992.zip
hdf5-4ecf02f6f6a7c79e4e0d57ea2058ccb5e760f992.tar.gz
hdf5-4ecf02f6f6a7c79e4e0d57ea2058ccb5e760f992.tar.bz2
HDFFV-9724 Remove VDS file cache functionality
Diffstat (limited to 'java')
-rw-r--r--java/src/hdf/hdf5lib/H5.java57
-rw-r--r--java/src/jni/h5pImp.c31
-rw-r--r--java/src/jni/h5pImp.h18
-rw-r--r--java/test/JUnit-interface.txt3
-rw-r--r--java/test/TestH5Pfapl.java27
5 files changed, 30 insertions, 106 deletions
diff --git a/java/src/hdf/hdf5lib/H5.java b/java/src/hdf/hdf5lib/H5.java
index 3de49da..78ebbe2 100644
--- a/java/src/hdf/hdf5lib/H5.java
+++ b/java/src/hdf/hdf5lib/H5.java
@@ -6097,34 +6097,35 @@ public class H5 implements java.io.Serializable {
**/
public synchronized static native String H5Pget_virtual_dsetname(long dcpl_id, long index) throws HDF5LibraryException, IllegalArgumentException;
- /**
- * H5Pget_vds_file_cache_size retrieves the size of the vds link open file cache.
- *
- * @param fapl_id
- * IN: File access property list identifier
- *
- * @return VDS link open file cache size in number of files.
- *
- * @exception HDF5LibraryException
- * - Error from the HDF-5 Library.
- *
- **/
- public synchronized static native int H5Pget_vds_file_cache_size(long fapl_id) throws HDF5LibraryException;
-
- /**
- * H5Pset_vds_file_cache_size sets the number of files that can be held open in an vds link open file cache.
- *
- * @param fapl_id
- * IN: File access property list identifier
- * @param efc_size
- * IN: VDS link open file cache size in number of files.
- *
- * @exception HDF5LibraryException
- * - Error from the HDF-5 Library.
- *
- **/
- public synchronized static native void H5Pset_vds_file_cache_size(long fapl_id, int efc_size)
- throws HDF5LibraryException;
+// ///// unimplemented /////
+// /**
+// * H5Pget_vds_file_cache_size retrieves the size of the vds link open file cache.
+// *
+// * @param fapl_id
+// * IN: File access property list identifier
+// *
+// * @return VDS link open file cache size in number of files.
+// *
+// * @exception HDF5LibraryException
+// * - Error from the HDF-5 Library.
+// *
+// **/
+// public synchronized static native int H5Pget_vds_file_cache_size(long fapl_id) throws HDF5LibraryException;
+//
+// /**
+// * H5Pset_vds_file_cache_size sets the number of files that can be held open in an vds link open file cache.
+// *
+// * @param fapl_id
+// * IN: File access property list identifier
+// * @param efc_size
+// * IN: VDS link open file cache size in number of files.
+// *
+// * @exception HDF5LibraryException
+// * - Error from the HDF-5 Library.
+// *
+// **/
+// public synchronized static native void H5Pset_vds_file_cache_size(long fapl_id, int efc_size)
+// throws HDF5LibraryException;
/**
* H5Pget_external returns information about an external file.
diff --git a/java/src/jni/h5pImp.c b/java/src/jni/h5pImp.c
index b144ff6..cf27341 100644
--- a/java/src/jni/h5pImp.c
+++ b/java/src/jni/h5pImp.c
@@ -5733,37 +5733,6 @@ Java_hdf_hdf5lib_H5_H5Pset_1metadata_1read_1attempts
} /* end else */
} /* end Java_hdf_hdf5lib_H5_H5Pset_1metadata_1read_1attempts */
-/*
- * Class: hdf_hdf5lib_H5
- * Method: H5Pset_vds_file_cache_size
- * Signature: (JI)V
- */
-JNIEXPORT void JNICALL
-Java_hdf_hdf5lib_H5_H5Pset_1vds_1file_1cache_1size
- (JNIEnv *env, jclass clss, jlong plist, jint size)
-{
- unsigned sz = (unsigned)size;
-
- if (H5Pset_vds_file_cache_size((hid_t)plist, (unsigned)sz) < 0)
- h5libraryError(env);
-} /* end Java_hdf_hdf5lib_H5_H5Pset_1vds_1file_1cache_1size */
-
-/*
- * Class: hdf_hdf5lib_H5
- * Method: H5Pget_vds_file_cache_size
- * Signature: (J)I
- */
-JNIEXPORT jint JNICALL
-Java_hdf_hdf5lib_H5_H5Pget_1vds_1file_1cache_1size
- (JNIEnv *env, jclass clss, jlong plist)
-{
- unsigned s;
-
- if (H5Pget_vds_file_cache_size((hid_t)plist, &s) < 0)
- h5libraryError(env);
-
- return (jint)s;
-} /* end Java_hdf_hdf5lib_H5_H5Pget_1vds_1file_1cache_1size */
/*
* Class: hdf_hdf5lib_H5
diff --git a/java/src/jni/h5pImp.h b/java/src/jni/h5pImp.h
index 19df4b2..1d12e3d 100644
--- a/java/src/jni/h5pImp.h
+++ b/java/src/jni/h5pImp.h
@@ -1544,24 +1544,6 @@ Java_hdf_hdf5lib_H5_H5Pset_1metadata_1read_1attempts
/*
* Class: hdf_hdf5lib_H5
- * Method: H5Pset_vds_file_cache_size
- * Signature: (JI)V
- */
-JNIEXPORT void JNICALL
-Java_hdf_hdf5lib_H5_H5Pset_1vds_1file_1cache_1size
-(JNIEnv *, jclass, jlong, jint);
-
-/*
- * Class: hdf_hdf5lib_H5
- * Method: H5Pget_vds_file_cache_size
- * Signature: (J)I
- */
-JNIEXPORT jint JNICALL
-Java_hdf_hdf5lib_H5_H5Pget_1vds_1file_1cache_1size
-(JNIEnv *, jclass, jlong);
-
-/*
- * Class: hdf_hdf5lib_H5
* Method: H5Pset_virtual_prefix
* Signature: (JLjava/lang/String;)V
*/
diff --git a/java/test/JUnit-interface.txt b/java/test/JUnit-interface.txt
index fa5b149..91ea286 100644
--- a/java/test/JUnit-interface.txt
+++ b/java/test/JUnit-interface.txt
@@ -505,7 +505,6 @@ JUnit version 4.11
.testH5Fmdc_logging
.testH5Pget_elink_fapl
.testH5Pset_mdc_config
-.testH5P_vds_file_cache_size
.testH5P_small_data_block_size
.testH5Pset_fapl_log
.testH5P_evict_on_close
@@ -648,7 +647,7 @@ JUnit version 4.11
Time: XXXX
-OK (646 tests)
+OK (645 tests)
HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
#000: (file name) line (number) in H5Fopen(): can't set access and transfer property lists
diff --git a/java/test/TestH5Pfapl.java b/java/test/TestH5Pfapl.java
index f6783d4..48a5986 100644
--- a/java/test/TestH5Pfapl.java
+++ b/java/test/TestH5Pfapl.java
@@ -1390,31 +1390,4 @@ public class TestH5Pfapl {
fail("H5P_evict_on_close: " + err);
}
}
-
- @Test
- public void testH5P_vds_file_cache_size() {
- int vds_size = 0;
- try {
- try {
- vds_size = H5.H5Pget_vds_file_cache_size(fapl_id);
- assertTrue("H5P_vds_file_cache_size default", vds_size == 0);
- }
- catch (UnsupportedOperationException err) {
- System.out.println(err.getMessage());
- }
- try {
- vds_size = 8;
- H5.H5Pset_vds_file_cache_size(fapl_id, vds_size);
- vds_size = H5.H5Pget_vds_file_cache_size(fapl_id);
- assertTrue("H5P_vds_file_cache_size 8", vds_size == 8);
- }
- catch (UnsupportedOperationException err) {
- System.out.println(err.getMessage());
- }
- }
- catch (Throwable err) {
- err.printStackTrace();
- fail("H5P_vds_file_cache_size: " + err);
- }
- }
}