Package org.fcrepo.kernel.impl
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.ContainmentIndexContainmentIndex wrapper for adding metrics- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description ContainmentIndexMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContainedBy(String txID, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)voidaddContainedBy(String txId, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime)voidcommitTransaction(String txId)InstantcontainmentLastUpdated(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)StringgetContainedBy(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)org.fcrepo.kernel.api.identifiers.FedoraIdgetContainerIdByPath(String txID, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean checkDeleted)Stream<String>getContains(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)Stream<String>getContainsDeleted(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)booleanhasResourcesStartingWith(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)voidpurgeResource(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)voidremoveContainedBy(String txID, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child)voidremoveResource(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)voidreset()booleanresourceExists(String txID, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)voidrollbackTransaction(String txId)
-
-
-
Constructor Detail
-
ContainmentIndexMetrics
public ContainmentIndexMetrics()
-
-
Method Detail
-
getContains
public Stream<String> getContains(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
getContainsin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainsDeleted
public Stream<String> getContainsDeleted(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
getContainsDeletedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainedBy
public String getContainedBy(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
getContainedByin interfaceorg.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:
removeContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
removeResource
public void removeResource(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
removeResourcein interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
purgeResource
public void purgeResource(String txID, org.fcrepo.kernel.api.identifiers.FedoraId resource)
- Specified by:
purgeResourcein interfaceorg.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:
addContainedByin interfaceorg.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:
addContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
commitTransaction
public void commitTransaction(String txId)
- Specified by:
commitTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
rollbackTransaction
public void rollbackTransaction(String txId)
- Specified by:
rollbackTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
resourceExists
public boolean resourceExists(String txID, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted)
- Specified by:
resourceExistsin interfaceorg.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:
getContainerIdByPathin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
reset
public void reset()
- Specified by:
resetin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
hasResourcesStartingWith
public boolean hasResourcesStartingWith(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
hasResourcesStartingWithin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
containmentLastUpdated
public Instant containmentLastUpdated(String txId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
- Specified by:
containmentLastUpdatedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
-