- java.lang.Object
-
- swim.db.Zone
-
- swim.db.FileZone
-
public class FileZone extends Zone
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()ChunkcommitAndWriteChunk(Commit commit)Databasedatabase()protected voiddidClose()Lifecycle callback invoked upon entering the closed state.protected voiddidOpen()Lifecycle callback invoked upon entering the opened state.Filefile()Germgerm()intid()protected GermloadGerm()protected voidonClose()Lifecycle callback invoked to actually close the zone.protected voidonOpen()Lifecycle callback invoked to actually open the zone.booleanopen()DatabaseopenDatabase()FileChannelopenReadChannel()FileChannelopenWriteChannel()protected GermparseGerm(Input input)StoreSettingssettings()longsize()Stagestage()Storestore()protected voidwillClose()Lifecycle callback invoked upon entering the closing state.protected voidwillOpen()Lifecycle callback invoked upon entering the opening state.
-
-
-
Method Detail
-
store
public final Store store()
-
file
public final File file()
-
stage
public final Stage stage()
-
database
public final Database database()
-
settings
public final StoreSettings settings()
-
willOpen
protected void willOpen()
Lifecycle callback invoked upon entering the opening state.
-
onOpen
protected void onOpen()
Lifecycle callback invoked to actually open the zone.
-
didOpen
protected void didOpen()
Lifecycle callback invoked upon entering the opened state.
-
willClose
protected void willClose()
Lifecycle callback invoked upon entering the closing state.
-
onClose
protected void onClose()
Lifecycle callback invoked to actually close the zone.
-
didClose
protected void didClose()
Lifecycle callback invoked upon entering the closed state.
-
loadGerm
protected Germ loadGerm()
-
openDatabase
public Database openDatabase()
- Specified by:
openDatabasein classZone
-
openReadChannel
public FileChannel openReadChannel() throws IOException
- Throws:
IOException
-
openWriteChannel
public FileChannel openWriteChannel() throws IOException
- Throws:
IOException
-
commitAndWriteChunk
public Chunk commitAndWriteChunk(Commit commit)
- Specified by:
commitAndWriteChunkin classZone
-
-