Module swim.db
Package swim.db

Class FileStore


  • public class FileStore
    extends Store
    • Method Detail

      • directory

        public final File directory()
      • baseName

        public final String baseName()
      • zoneFileExt

        public final String zoneFileExt()
      • size

        public final long size()
        Specified by:
        size in class Store
      • isCommitting

        public final boolean isCommitting()
        Specified by:
        isCommitting in class Store
      • isCompacting

        public final boolean isCompacting()
        Specified by:
        isCompacting in class Store
      • open

        public boolean open()
        Specified by:
        open in class Store
      • willOpen

        protected void willOpen()
        Lifecycle callback invoked upon entering the opening state.
      • onOpen

        protected void onOpen()
        Lifecycle callback invoked to actually open the store.
      • didOpen

        protected void didOpen()
        Lifecycle callback invoked upon entering the opened state.
      • close

        public boolean close()
        Specified by:
        close in class Store
      • willClose

        protected void willClose()
        Lifecycle callback invoked upon entering the closing state.
      • onClose

        protected void onClose()
        Lifecycle callback invoked to actually close the store.
      • didClose

        protected void didClose()
        Lifecycle callback invoked upon entering the closed state.
      • oldestZoneId

        public int oldestZoneId()
        Specified by:
        oldestZoneId in class Store
      • newestZoneId

        public int newestZoneId()
        Specified by:
        newestZoneId in class Store
      • openZone

        protected Zone openZone()
      • deletePost

        public void deletePost​(int post)
        Specified by:
        deletePost in class Store
      • delete

        public boolean delete()
      • zoneFile

        protected File zoneFile​(int zone)