Class StableStore

java.lang.Object
com.swiftmq.impl.store.standard.cache.StableStore
All Implemented Interfaces:
com.swiftmq.swiftlet.mgmt.event.MgmtListener, com.swiftmq.swiftlet.timer.event.TimerListener, EventListener

public class StableStore extends Object implements com.swiftmq.swiftlet.timer.event.TimerListener, com.swiftmq.swiftlet.mgmt.event.MgmtListener
  • Field Details

  • Constructor Details

  • Method Details

    • getnFree

      public int getnFree()
    • isCheckPointActive

      public boolean isCheckPointActive()
    • setCheckPointActive

      public void setCheckPointActive(boolean checkPointActive)
    • setFreePoolEnabled

      public void setFreePoolEnabled(boolean freePoolEnabled)
    • adminToolActivated

      public void adminToolActivated()
      Specified by:
      adminToolActivated in interface com.swiftmq.swiftlet.mgmt.event.MgmtListener
    • adminToolDeactivated

      public void adminToolDeactivated()
      Specified by:
      adminToolDeactivated in interface com.swiftmq.swiftlet.mgmt.event.MgmtListener
    • performTimeAction

      public void performTimeAction()
      Specified by:
      performTimeAction in interface com.swiftmq.swiftlet.timer.event.TimerListener
    • copyToNewSize

      public static void copyToNewSize(String sourceFilename, String destFilename, int oldSize, int newSize) throws Exception
      Throws:
      Exception
    • setNumberPages

      public void setNumberPages(int numberPages)
    • createPage

      public Page createPage(int pageNo)
    • ensurePage

      protected void ensurePage(int pageNo) throws Exception
      Throws:
      Exception
    • sync

      public void sync() throws Exception
      Throws:
      Exception
    • truncateToPage

      public void truncateToPage(int pageNo) throws Exception
      Throws:
      Exception
    • loadPage

      protected Page loadPage(int pageNo) throws Exception
      Throws:
      Exception
    • getNumberPages

      public int getNumberPages()
    • create

      protected Page create() throws Exception
      Throws:
      Exception
    • ensure

      public void ensure(int pageNo) throws Exception
      Throws:
      Exception
    • get

      public Page get(int pageNo) throws Exception
      Throws:
      Exception
    • put

      public void put(Page page) throws Exception
      Throws:
      Exception
    • free

      public void free(Page page) throws Exception
      Throws:
      Exception
    • writePage

      protected void writePage(Page p) throws Exception
      Throws:
      Exception
    • shrinkFile

      public void shrinkFile() throws Exception
      Throws:
      Exception
    • shrink

      public void shrink() throws Exception
      Throws:
      Exception
    • deleteStore

      public void deleteStore() throws Exception
      Throws:
      Exception
    • copy

      public void copy(String destPath) throws Exception
      Throws:
      Exception
    • close

      public void close() throws Exception
      Throws:
      Exception
    • reset

      public void reset() throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object