Class ContainmentIndexMetrics

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.ContainmentIndex

    @Component("containmentIndex")
    public class ContainmentIndexMetrics
    extends Object
    implements org.fcrepo.kernel.api.ContainmentIndex
    ContainmentIndex wrapper for adding metrics
    Author:
    pwinckles
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addContainedBy​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)  
      void addContainedBy​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime)  
      void commitTransaction​(org.fcrepo.kernel.api.Transaction tx)  
      Instant containmentLastUpdated​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)  
      String getContainedBy​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)  
      org.fcrepo.kernel.api.identifiers.FedoraId getContainerIdByPath​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean checkDeleted)  
      Stream<String> getContains​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)  
      Stream<String> getContainsDeleted​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)  
      boolean hasResourcesStartingWith​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)  
      void purgeResource​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)  
      void removeContainedBy​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)  
      void removeResource​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource)  
      void reset()  
      boolean resourceExists​(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)  
      void rollbackTransaction​(org.fcrepo.kernel.api.Transaction tx)  
    • Method Detail

      • getContains

        public Stream<StringgetContains​(org.fcrepo.kernel.api.Transaction tx,
                                          org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
        Specified by:
        getContains in interface org.fcrepo.kernel.api.ContainmentIndex
      • getContainsDeleted

        public Stream<StringgetContainsDeleted​(org.fcrepo.kernel.api.Transaction tx,
                                                 org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
        Specified by:
        getContainsDeleted in interface org.fcrepo.kernel.api.ContainmentIndex
      • getContainedBy

        public String getContainedBy​(org.fcrepo.kernel.api.Transaction tx,
                                     org.fcrepo.kernel.api.identifiers.FedoraId resource)
        Specified by:
        getContainedBy in interface org.fcrepo.kernel.api.ContainmentIndex
      • removeContainedBy

        public void removeContainedBy​(org.fcrepo.kernel.api.Transaction tx,
                                      org.fcrepo.kernel.api.identifiers.FedoraId parent,
                                      org.fcrepo.kernel.api.identifiers.FedoraId child)
        Specified by:
        removeContainedBy in interface org.fcrepo.kernel.api.ContainmentIndex
      • removeResource

        public void removeResource​(org.fcrepo.kernel.api.Transaction tx,
                                   org.fcrepo.kernel.api.identifiers.FedoraId resource)
        Specified by:
        removeResource in interface org.fcrepo.kernel.api.ContainmentIndex
      • purgeResource

        public void purgeResource​(org.fcrepo.kernel.api.Transaction tx,
                                  org.fcrepo.kernel.api.identifiers.FedoraId resource)
        Specified by:
        purgeResource in interface org.fcrepo.kernel.api.ContainmentIndex
      • addContainedBy

        public void addContainedBy​(org.fcrepo.kernel.api.Transaction tx,
                                   org.fcrepo.kernel.api.identifiers.FedoraId parent,
                                   org.fcrepo.kernel.api.identifiers.FedoraId child)
        Specified by:
        addContainedBy in interface org.fcrepo.kernel.api.ContainmentIndex
      • addContainedBy

        public void addContainedBy​(org.fcrepo.kernel.api.Transaction tx,
                                   org.fcrepo.kernel.api.identifiers.FedoraId parent,
                                   org.fcrepo.kernel.api.identifiers.FedoraId child,
                                   Instant startTime,
                                   Instant endTime)
        Specified by:
        addContainedBy in interface org.fcrepo.kernel.api.ContainmentIndex
      • commitTransaction

        public void commitTransaction​(org.fcrepo.kernel.api.Transaction tx)
        Specified by:
        commitTransaction in interface org.fcrepo.kernel.api.ContainmentIndex
      • rollbackTransaction

        public void rollbackTransaction​(org.fcrepo.kernel.api.Transaction tx)
        Specified by:
        rollbackTransaction in interface org.fcrepo.kernel.api.ContainmentIndex
      • resourceExists

        public boolean resourceExists​(org.fcrepo.kernel.api.Transaction tx,
                                      org.fcrepo.kernel.api.identifiers.FedoraId fedoraId,
                                      boolean includeDeleted)
        Specified by:
        resourceExists in interface org.fcrepo.kernel.api.ContainmentIndex
      • getContainerIdByPath

        public org.fcrepo.kernel.api.identifiers.FedoraId getContainerIdByPath​(org.fcrepo.kernel.api.Transaction tx,
                                                                               org.fcrepo.kernel.api.identifiers.FedoraId fedoraId,
                                                                               boolean checkDeleted)
        Specified by:
        getContainerIdByPath in interface org.fcrepo.kernel.api.ContainmentIndex
      • reset

        public void reset()
        Specified by:
        reset in interface org.fcrepo.kernel.api.ContainmentIndex
      • hasResourcesStartingWith

        public boolean hasResourcesStartingWith​(org.fcrepo.kernel.api.Transaction tx,
                                                org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
        Specified by:
        hasResourcesStartingWith in interface org.fcrepo.kernel.api.ContainmentIndex
      • containmentLastUpdated

        public Instant containmentLastUpdated​(org.fcrepo.kernel.api.Transaction tx,
                                              org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
        Specified by:
        containmentLastUpdated in interface org.fcrepo.kernel.api.ContainmentIndex