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 void
cleanupSession(String transactionId)
Remove persistent sessions for a transaction to avoid memory leaks.void
indexMembership(Transaction transaction)
Index all membership properties by querying for Direct containers, and then trying population of the membership index for each onevoid
indexOcflObject(Transaction tx, String ocflId)
void
reset()
Reset all the indexes.void
rollbackMembership(@NotNull Transaction tx)
Rollback changes in the transaction.void
setMembershipPageSize(int pageSize)
Set the membership page size.
-
-
-
Constructor Detail
-
ReindexService
public ReindexService()
-
-
Method Detail
-
indexOcflObject
public void indexOcflObject(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(Transaction transaction)
Index all membership properties by querying for Direct containers, and then trying population of the membership index for each one- Parameters:
transaction
- the transaction id.
-
rollbackMembership
public void rollbackMembership(@NotNull @NotNull Transaction tx)
Rollback changes in the transaction.- Parameters:
tx
- the transaction
-
-