|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.HDF5Util
public class HDF5Util
Provides one method to clean up the HDF5 libs possibly open descriptors. If this is not done the interface/library will eventually blow a gasket. Even with careful tracking of all open descriptors it *seems* that inevitably there is some descriptors left open someplace, and this can lead to a leak... Which will result in the HDF5 JNI crashing the JVM. The approach is to walk through the descriptor table and simply call every close function call available since there is no way to tell by the descriptor itself which kind it is... Yuck. Ok fine, I admit it, it's yucky but it seems to work.
Constructor Summary | |
---|---|
HDF5Util()
|
Method Summary | |
---|---|
static void |
cleanup()
This cleans up the HDF5 interface by attempting to close all open descriptors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HDF5Util()
Method Detail |
---|
public static void cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |