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.ContainmentIndex
ContainmentIndex wrapper for adding metrics
- Author:
- pwinckles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child) voidaddContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child, Instant startTime, Instant endTime) voidvoidcommitTransaction(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.FedoraIdgetContainerIdByPath(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) booleanhasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) voidpurgeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource) voidremoveContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId parent, org.fcrepo.kernel.api.identifiers.FedoraId child) voidremoveResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource) voidreset()booleanresourceExists(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId, boolean includeDeleted) voidrollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
-
Constructor Details
-
ContainmentIndexMetrics
public ContainmentIndexMetrics()
-
-
Method Details
-
getContains
public Stream<String> getContains(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) - Specified by:
getContainsin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainsDeleted
public Stream<String> getContainsDeleted(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) - Specified by:
getContainsDeletedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
getContainedBy
public String getContainedBy(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource) - Specified by:
getContainedByin interfaceorg.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:
removeContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
removeResource
public void removeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource) - Specified by:
removeResourcein interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
purgeResource
public void purgeResource(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId resource) - Specified by:
purgeResourcein interfaceorg.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:
addContainedByin interfaceorg.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:
addContainedByin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
commitTransaction
- Specified by:
commitTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
rollbackTransaction
- Specified by:
rollbackTransactionin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
clearAllTransactions
- Specified by:
clearAllTransactionsin interfaceorg.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:
resourceExistsin interfaceorg.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:
getContainerIdByPathin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
reset
- Specified by:
resetin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
hasResourcesStartingWith
public boolean hasResourcesStartingWith(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) - Specified by:
hasResourcesStartingWithin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-
containmentLastUpdated
public Instant containmentLastUpdated(org.fcrepo.kernel.api.Transaction tx, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) - Specified by:
containmentLastUpdatedin interfaceorg.fcrepo.kernel.api.ContainmentIndex
-