Class ContainmentIndexMetrics

java.lang.Object
org.fcrepo.kernel.impl.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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
     
    void
    commitTransaction(org.fcrepo.kernel.api.Transaction tx)
     
    containmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
     
    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)
     
    getContains(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
     
    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
     
    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)
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getContains

      public Stream<String> getContains(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<String> getContainsDeleted(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
    • clearAllTransactions

      public void clearAllTransactions()
      Specified by:
      clearAllTransactions 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