Class OcflPersistentStorageSessionMetrics

java.lang.Object
org.fcrepo.persistence.ocfl.impl.OcflPersistentStorageSessionMetrics
All Implemented Interfaces:
org.fcrepo.persistence.api.PersistentStorageSession

public class OcflPersistentStorageSessionMetrics extends Object implements org.fcrepo.persistence.api.PersistentStorageSession
PersistentStorageSession wrapper for collecting metrics
Author:
pwinckles
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.fcrepo.persistence.api.PersistentStorageSession
    • persist

      public void persist(org.fcrepo.kernel.api.operations.ResourceOperation operation) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      persist in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • getHeaders

      public org.fcrepo.kernel.api.models.ResourceHeaders getHeaders(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      getHeaders in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • getTriples

      public org.fcrepo.kernel.api.RdfStream getTriples(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      getTriples in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • getBinaryContent

      public InputStream getBinaryContent(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      getBinaryContent in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • getBinaryRange

      public InputStream getBinaryRange(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Instant version, long start, long end) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      getBinaryRange in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • listVersions

      public List<Instant> listVersions(org.fcrepo.kernel.api.identifiers.FedoraId identifier) throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      listVersions in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • prepare

      public void prepare() throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      prepare in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • commit

      public void commit() throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      commit in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException
    • rollback

      public void rollback() throws org.fcrepo.persistence.api.exceptions.PersistentStorageException
      Specified by:
      rollback in interface org.fcrepo.persistence.api.PersistentStorageSession
      Throws:
      org.fcrepo.persistence.api.exceptions.PersistentStorageException