org.ozoneDB.core.storage.gammaStore
Class DataFileManager
java.lang.Object
org.ozoneDB.core.storage.gammaStore.DataFileManager
- public class DataFileManager
- extends java.lang.Object
- Author:
- leo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATAFILEPREFIX
private static final java.lang.String DATAFILEPREFIX
- See Also:
- Constant Field Values
DATAFILEPOSTFIX
private static final java.lang.String DATAFILEPOSTFIX
- See Also:
- Constant Field Values
NAMECONVERTRADIX
private static final int NAMECONVERTRADIX
Used to name indexfiles. We could take any value from 2 to
Character.MAX_RADIX
(36) here, but we settle for 16 because
it looks nice and nerdy. 36 would look less nice because that would
inevitably lead to filenames with very nasty words in them, like
fuck.datafile
and microsoft.datafile
.
Before you know it, someone sues you for trademark infringement.
Insiders joke: CAFEBABE is not a trademark, is she?
- See Also:
- Constant Field Values
dataFiles
private java.util.LinkedHashMap dataFiles
maxOpenDataFiles
private int maxOpenDataFiles
dataFileFactory
private StorageFactory dataFileFactory
objectStreamClasses
private ObjectStreamClasses objectStreamClasses
DataFileManager
public DataFileManager()
setObjectStreamClasses
public void setObjectStreamClasses(ObjectStreamClasses objectStreamClasses)
getObjectStreamClasses
public ObjectStreamClasses getObjectStreamClasses()
getDataFiles
private java.util.Map getDataFiles()
dataFileIdToStorageName
private static java.lang.String dataFileIdToStorageName(int dataFileId)
getDataFile
private Storage getDataFile(int dataFileId)
getContainer
public GammaContainer getContainer(ContainerLocation containerLocation)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
saveContainer
public void saveContainer(ContainerLocation containerLocation,
GammaContainer container,
int freeSize)
getMaxOpenDataFiles
public int getMaxOpenDataFiles()
setMaxOpenDataFiles
public void setMaxOpenDataFiles(int maxOpenDataFiles)
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.