Package com.opentext.ia.sdk.sip
Class TimeBasedBatchSipAssembler<D>
- java.lang.Object
-
- com.opentext.ia.sdk.sip.BatchSipAssembler<D>
-
- com.opentext.ia.sdk.sip.BatchSipAssemblerWithCallback<D>
-
- com.opentext.ia.sdk.sip.TimeBasedBatchSipAssembler<D>
-
- Type Parameters:
D
- The type of domain objects to assemble
public class TimeBasedBatchSipAssembler<D> extends BatchSipAssemblerWithCallback<D>
Assemble a batch of SIPs on a timed interval.
-
-
Constructor Summary
Constructors Constructor Description TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, SipAssemblyTimer sipAssemblyTimer)
TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.io.File dir, SipAssemblyTimer sipAssemblyTimer)
TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.util.function.Supplier<java.io.File> fileSupplier, SipAssemblyTimer sipAssemblyTimer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(D domainObject)
Add a domain object to the batch of SIPs.void
end()
End the batch assembly process.protected void
sipEnded(FileGenerationMetrics metrics)
-
Methods inherited from class com.opentext.ia.sdk.sip.BatchSipAssemblerWithCallback
getCallback, getLock
-
Methods inherited from class com.opentext.ia.sdk.sip.BatchSipAssembler
closeCurrentSip, getSipsMetrics, setFinalSipInDss
-
-
-
-
Constructor Detail
-
TimeBasedBatchSipAssembler
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, SipAssemblyTimer sipAssemblyTimer)
-
TimeBasedBatchSipAssembler
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.io.File dir, SipAssemblyTimer sipAssemblyTimer)
-
TimeBasedBatchSipAssembler
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.util.function.Supplier<java.io.File> fileSupplier, SipAssemblyTimer sipAssemblyTimer)
-
-
Method Detail
-
add
public void add(D domainObject) throws java.io.IOException
Description copied from class:BatchSipAssembler
Add a domain object to the batch of SIPs.- Overrides:
add
in classBatchSipAssembler<D>
- Parameters:
domainObject
- The domain object to add- Throws:
java.io.IOException
- When an I/O error occurs
-
sipEnded
protected void sipEnded(FileGenerationMetrics metrics)
- Overrides:
sipEnded
in classBatchSipAssemblerWithCallback<D>
-
end
public void end() throws java.io.IOException
Description copied from class:BatchSipAssembler
End the batch assembly process.- Overrides:
end
in classBatchSipAssembler<D>
- Throws:
java.io.IOException
- When an I/O error occurs
-
-