Package one.microstream.storage.types
Class StorageBackupFile.Default
java.lang.Object
one.microstream.storage.types.StorageBackupFile.Default
- All Implemented Interfaces:
StorageBackupFile
,StorageChannelFile
,StorageFile
,StorageHashChannelPart
,StorageNumberedFile
- Enclosing interface:
- StorageBackupFile
public static final class StorageBackupFile.Default extends Object implements StorageBackupFile
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageBackupFile
StorageBackupFile.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description int
channelIndex()
void
close()
boolean
delete()
boolean
exists()
FileChannel
fileChannel()
StorageFile
flush()
String
identifier()
Returns a string uniquely identifying the file represented by this instance.StorageInventoryFile
inventorize()
boolean
isEmpty()
boolean
isOpen()
long
length()
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
-
inventorize
- Specified by:
inventorize
in interfaceStorageNumberedFile
-
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()
-
length
public final long length()- Specified by:
length
in interfaceStorageFile
-
delete
public final boolean delete()- Specified by:
delete
in interfaceStorageFile
-
exists
public final boolean exists()- Specified by:
exists
in interfaceStorageFile
-
isEmpty
public final boolean isEmpty()- Specified by:
isEmpty
in interfaceStorageFile
-
fileChannel
- Specified by:
fileChannel
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
-