Package org.fcrepo.persistence.ocfl.impl
Class ReindexService
- java.lang.Object
-
- org.fcrepo.persistence.ocfl.impl.ReindexService
-
@Component public class ReindexService extends Object
Service that does the reindexing for one OCFL object.- Author:
- whikloj
-
-
Constructor Summary
Constructors Constructor Description ReindexService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupSession(String transactionId)Remove persistent sessions for a transaction to avoid memory leaks.voidindexMembership(org.fcrepo.kernel.api.Transaction transaction)Index all membership properties by querying for Direct and Indirect containers, and then trying population of the membership index for each onevoidindexOcflObject(org.fcrepo.kernel.api.Transaction tx, String ocflId)voidreset()Reset all the indexes.voidrollbackMembership(@NotNull org.fcrepo.kernel.api.Transaction tx)Rollback changes in the transaction.voidsetMembershipPageSize(int pageSize)Set the membership page size.
-
-
-
Constructor Detail
-
ReindexService
public ReindexService()
-
-
Method Detail
-
indexOcflObject
public void indexOcflObject(org.fcrepo.kernel.api.Transaction tx, String ocflId)
-
cleanupSession
public void cleanupSession(String transactionId)
Remove persistent sessions for a transaction to avoid memory leaks.- Parameters:
transactionId- the transaction id.
-
setMembershipPageSize
public void setMembershipPageSize(int pageSize)
Set the membership page size.- Parameters:
pageSize- the new page size.
-
reset
public void reset()
Reset all the indexes.
-
indexMembership
public void indexMembership(org.fcrepo.kernel.api.Transaction transaction)
Index all membership properties by querying for Direct and Indirect containers, and then trying population of the membership index for each one- Parameters:
transaction- the transaction id.
-
rollbackMembership
public void rollbackMembership(@NotNull @NotNull org.fcrepo.kernel.api.Transaction tx)
Rollback changes in the transaction.- Parameters:
tx- the transaction
-
-