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()
Path
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.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
channelIndex
public final int channelIndex()- Specified by:
channelIndex
in interfaceStorageHashChannelPart
-
number
public final long number()- Specified by:
number
in interfaceStorageNumberedFile
-
file
-
qualifier
Description copied from interface:StorageFile
Returns a string that givesStorageFile.name()
a unique identity. Example: The parent directory path of a file.- Specified by:
qualifier
in interfaceStorageFile
-
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
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
- Specified by:
inventorize
in interfaceStorageNumberedFile
-
lock
-
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
- Specified by:
flush
in interfaceStorageFile
-
close
public final void close()- Specified by:
close
in interfaceStorageFile
-