Class RecoveryStoreProxy

    • Method Detail

      • allObjUids

        public boolean allObjUids​(java.lang.String type,
                                  InputObjectState buff,
                                  int match)
                           throws ObjectStoreException
        Description copied from interface: RecoveryStore
        Obtain all of the Uids for a specified type.
        Specified by:
        allObjUids in interface RecoveryStore
        Parameters:
        type - The type to scan for.
        buff - The object state in which to store the Uids
        match - The file type to look for (e.g., committed, shadowed). [StateStatus] Note: m=OS_UNKNOWN matches any state.
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • allObjUids

        public boolean allObjUids​(java.lang.String type,
                                  InputObjectState buff)
                           throws ObjectStoreException
        Description copied from interface: RecoveryStore
        Obtain all of the Uids for a specified type, regardless of their state.
        Specified by:
        allObjUids in interface RecoveryStore
        Parameters:
        type - The type to scan for.
        buff - The object state in which to store the Uids
        Returns:
        true if no errors occurred, false otherwise.
        Throws:
        ObjectStoreException
      • currentState

        public int currentState​(Uid u,
                                java.lang.String tn)
                         throws ObjectStoreException
        Specified by:
        currentState in interface RecoveryStore
        Parameters:
        u - The object to query.
        tn - The type of the object to query.
        Returns:
        the current state of the object's state (e.g., shadowed, committed ...) [StateStatus]
        Throws:
        ObjectStoreException
      • hide_state

        public boolean hide_state​(Uid u,
                                  java.lang.String tn)
                           throws ObjectStoreException
        Description copied from interface: RecoveryStore
        Hide the object's state in the object store. Used by crash recovery.
        Specified by:
        hide_state in interface RecoveryStore
        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
      • reveal_state

        public boolean reveal_state​(Uid u,
                                    java.lang.String tn)
                             throws ObjectStoreException
        Description copied from interface: RecoveryStore
        Reveal a hidden object's state.
        Specified by:
        reveal_state in interface RecoveryStore
        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
      • isType

        public boolean isType​(Uid u,
                              java.lang.String tn,
                              int st)
                       throws ObjectStoreException
        Description copied from interface: RecoveryStore
        Is the current state of the object the same as that provided as the last parameter?
        Specified by:
        isType in interface RecoveryStore
        Parameters:
        u - The object to work on.
        tn - The type of the object.
        st - The expected type of the object. [StateType]
        Returns:
        true if the current state is as expected, false otherwise.
        Throws:
        ObjectStoreException