Package one.microstream.storage.types
Class StorageNumberedFile.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageNumberedFile.Default
-
- All Implemented Interfaces:
StorageChannelFile
,StorageFile
,StorageHashChannelPart
,StorageNumberedFile
- Enclosing interface:
- StorageNumberedFile
public static final class StorageNumberedFile.Default extends Object implements StorageNumberedFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageNumberedFile
StorageNumberedFile.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description int
channelIndex()
void
close()
boolean
delete()
boolean
exists()
File
file()
FileChannel
fileChannel()
StorageFile
flush()
String
identifier()
Returns a string uniquely identifying the file represented by this instance.StorageInventoryFile
inventorize()
boolean
isOpen()
long
length()
FileLock
lock()
String
name()
Return a compact string containing a specific, but not necessarily unique name of the file represented by this instance.long
number()
String
qualifier()
Returns a string that givesStorageFile.name()
a unique identity.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.StorageFile
isEmpty
-
-
-
-
Method Detail
-
channelIndex
public final int channelIndex()
- Specified by:
channelIndex
in interfaceStorageHashChannelPart
-
number
public final long number()
- Specified by:
number
in interfaceStorageNumberedFile
-
file
public final File file()
-
qualifier
public final String qualifier()
Description copied from interface:StorageFile
Returns a string that givesStorageFile.name()
a unique identity. Example: The parent directory path of aFile
.- Specified by:
qualifier
in interfaceStorageFile
-
identifier
public final String identifier()
Description copied from interface:StorageFile
Returns a string uniquely identifying the file represented by this instance.- Specified by:
identifier
in interfaceStorageFile
- Returns:
- this file's unique identifier.
- See Also:
StorageFile.name()
-
name
public final String name()
Description copied from interface:StorageFile
Return a compact string containing a specific, but not necessarily unique name of the file represented by this instance. Might be the same string returned byStorageFile.identifier()
.- Specified by:
name
in interfaceStorageFile
- Returns:
- this file's name.
- See Also:
StorageFile.identifier()
-
delete
public final boolean delete()
- Specified by:
delete
in interfaceStorageFile
-
exists
public final boolean exists()
- Specified by:
exists
in interfaceStorageFile
-
inventorize
public final StorageInventoryFile inventorize()
- Specified by:
inventorize
in interfaceStorageNumberedFile
-
lock
public final FileLock lock()
-
fileChannel
public final FileChannel fileChannel()
- Specified by:
fileChannel
in interfaceStorageFile
-
length
public final long length()
- Specified by:
length
in interfaceStorageFile
-
isOpen
public final boolean isOpen()
- Specified by:
isOpen
in interfaceStorageFile
-
flush
public final StorageFile flush()
- Specified by:
flush
in interfaceStorageFile
-
close
public final void close()
- Specified by:
close
in interfaceStorageFile
-
-