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 Detail

      • getContains

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

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

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

        public void removeContainedBy​(String txID,
                                      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​(String txID,
                                   org.fcrepo.kernel.api.identifiers.FedoraId resource)
        Specified by:
        removeResource in interface org.fcrepo.kernel.api.ContainmentIndex
      • purgeResource

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

        public void addContainedBy​(String txID,
                                   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​(String txId,
                                   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​(String txId)
        Specified by:
        commitTransaction in interface org.fcrepo.kernel.api.ContainmentIndex
      • rollbackTransaction

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

        public boolean resourceExists​(String txID,
                                      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​(String txID,
                                                                               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​(String txId,
                                                org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
        Specified by:
        hasResourcesStartingWith in interface org.fcrepo.kernel.api.ContainmentIndex
      • containmentLastUpdated

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