java.lang.Object
swim.db.Zone
swim.db.FileZone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclose()commitAndWriteChunk(Commit commit) final Databasedatabase()protected voiddidClose()Lifecycle callback invoked upon entering the closed state.protected voiddidOpen()Lifecycle callback invoked upon entering the opened state.final Filefile()final Germgerm()final intid()protected GermloadGerm()protected voidonClose()Lifecycle callback invoked to actually close the zone.protected voidonOpen()Lifecycle callback invoked to actually open the zone.booleanopen()protected Germfinal StoreSettingssettings()final longsize()final Stagestage()final Storestore()protected voidLifecycle callback invoked upon entering the closing state.protected voidwillOpen()Lifecycle callback invoked upon entering the opening state.
-
Constructor Details
-
FileZone
-
FileZone
-
-
Method Details
-
store
-
id
public final int id() -
file
-
stage
-
database
-
germ
-
settings
-
size
public final long size() -
open
public boolean open() -
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. -
close
public boolean close() -
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
-
parseGerm
-
openDatabase
- Specified by:
openDatabasein classZone
-
openReadChannel
- Throws:
IOException
-
openWriteChannel
- Throws:
IOException
-
commitAndWriteChunk
- Specified by:
commitAndWriteChunkin classZone
-