Class TxLogProxy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getStoreName()  
      boolean remove_committed​(Uid u, java.lang.String tn)
      Remove the object's committed state.
      void start()  
      void stop()  
      void sync()
      Some object store implementations may be running with automatic sync disabled.
      boolean write_committed​(Uid u, java.lang.String tn, OutputObjectState buff)
      Write a new copy of the object's committed state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • remove_committed

        public boolean remove_committed​(Uid u,
                                        java.lang.String tn)
                                 throws ObjectStoreException
        Description copied from interface: TxLog
        Remove the object's committed state.
        Specified by:
        remove_committed in interface TxLog
        Parameters:
        u - The object to work on.
        tn - The type of the object to work on.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • write_committed

        public boolean write_committed​(Uid u,
                                       java.lang.String tn,
                                       OutputObjectState buff)
                                throws ObjectStoreException
        Description copied from interface: TxLog
        Write a new copy of the object's committed state.
        Specified by:
        write_committed in interface TxLog
        Parameters:
        u - The object to work on.
        tn - The type of the object to work on.
        buff - The state to write.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • sync

        public void sync()
                  throws java.io.SyncFailedException,
                         ObjectStoreException
        Description copied from interface: TxLog
        Some object store implementations may be running with automatic sync disabled. Calling this method will ensure that any states are flushed to disk.
        Specified by:
        sync in interface TxLog
        Throws:
        java.io.SyncFailedException
        ObjectStoreException
      • getStoreName

        public java.lang.String getStoreName()
        Specified by:
        getStoreName in interface BaseStore
        Returns:
        the "name" of the object store. Where in the hierarchy it appears, e.g., /ObjectStore/MyName/...
      • start

        public void start()
        Specified by:
        start in interface BaseStore
      • stop

        public void stop()
        Specified by:
        stop in interface BaseStore