Class ContentTransformDirectWriter
java.lang.Object
org.alfresco.elasticsearch.batchindexing.writers.ContentTransformDirectWriter
- All Implemented Interfaces:
org.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>
public class ContentTransformDirectWriter
extends Object
implements org.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>
-
Constructor Summary
ConstructorsConstructorDescriptionContentTransformDirectWriter(org.alfresco.reindexing.domain.transform.ContentTransformSupportService contentTransformSupportService, ContentTransformClient contentTransformClient, org.alfresco.indexing.shared.opensearch.ElasticsearchContentModifyPort contentModifyPort, String storeRef) ContentTransformDirectWriter(org.alfresco.reindexing.domain.transform.ContentTransformSupportService contentTransformSupportService, ContentTransformClient contentTransformClient, org.alfresco.indexing.shared.opensearch.ElasticsearchContentModifyPort contentModifyPort, String storeRef, int maxConcurrency) -
Method Summary
-
Constructor Details
-
Method Details
-
shutdown
@PreDestroy public void shutdown() -
write
public void write(org.springframework.batch.infrastructure.item.Chunk<? extends org.alfresco.reindexing.model.ReindexingEvent> chunk) throws Exception Failures are intentionally caught and logged rather than propagated to Spring Batch. Content transformation is a best-effort secondary indexing step — a failed transform should not cause the entire chunk to be retried or the step to fail, because the metadata and path indexing (handled by other writers) can still succeed. The affected nodes will be retried on the next reindexing window overlap.- Specified by:
writein interfaceorg.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>- Throws:
Exception
-