public static enum IHDF5WriterConfigurator.SyncMode extends java.lang.Enum<IHDF5WriterConfigurator.SyncMode>
fsync(2)
) to the HDF5 file with the underlying storage. As
fsync(2)
is blocking, the synchonization is by default performed in a separate thread to minimize latency effects on the
application. In order to ensure that fsync(2)
is called in the same thread, use one of the *_BLOCK
modes.
Note that non-blocking modes can have unexpected interactions with mandatory locks on Windows. The symptom of that will be that the program holds a lock to the HDF5 file for some (short) time even after the file has been closed. Thus, on Windows by default a blocking mode is chosen.
Enum Constant and Description |
---|
NO_SYNC
Do not synchronize at all.
|
SYNC
Synchronize whenever
IHDF5FileLevelReadWriteHandler.flush() or IHDF5FileLevelReadOnlyHandler.close() are called. |
SYNC_BLOCK
Synchronize whenever
IHDF5FileLevelReadWriteHandler.flush() or IHDF5FileLevelReadOnlyHandler.close() are called. |
SYNC_ON_FLUSH
Synchronize whenever
IHDF5FileLevelReadWriteHandler.flush() is called. |
SYNC_ON_FLUSH_BLOCK
Synchronize whenever
IHDF5FileLevelReadWriteHandler.flush() is called. |
Modifier and Type | Method and Description |
---|---|
static IHDF5WriterConfigurator.SyncMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IHDF5WriterConfigurator.SyncMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IHDF5WriterConfigurator.SyncMode NO_SYNC
public static final IHDF5WriterConfigurator.SyncMode SYNC
IHDF5FileLevelReadWriteHandler.flush()
or IHDF5FileLevelReadOnlyHandler.close()
are called.public static final IHDF5WriterConfigurator.SyncMode SYNC_BLOCK
IHDF5FileLevelReadWriteHandler.flush()
or IHDF5FileLevelReadOnlyHandler.close()
are called. Block until
synchronize is finished.public static final IHDF5WriterConfigurator.SyncMode SYNC_ON_FLUSH
IHDF5FileLevelReadWriteHandler.flush()
is called. Default on Unixpublic static final IHDF5WriterConfigurator.SyncMode SYNC_ON_FLUSH_BLOCK
IHDF5FileLevelReadWriteHandler.flush()
is called. Block until synchronize is finished. Default on Windows.public static IHDF5WriterConfigurator.SyncMode[] values()
for (IHDF5WriterConfigurator.SyncMode c : IHDF5WriterConfigurator.SyncMode.values()) System.out.println(c);
public static IHDF5WriterConfigurator.SyncMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null