use of org.commonjava.maven.galley.transport.htcli.UploadMetadataGenTransferDecorator in project galley by Commonjava.
the class UploadMetadataGenTransferDecoratorTest method prepare.
@Before
public void prepare() {
tempFolder = folder.newFolder("cache");
final UploadMetadataGenTransferDecorator decorator = new UploadMetadataGenTransferDecorator(specialPathManager);
provider = new TestCacheProvider(tempFolder, events, decorator);
}
use of org.commonjava.maven.galley.transport.htcli.UploadMetadataGenTransferDecorator in project indy by Commonjava.
the class DefaultGalleyStorageProvider method setupTransferDecoratorPipeline.
/**
* The order is important. We put the checksum decorator at the last because some decorators may change the content.
*/
private void setupTransferDecoratorPipeline() {
List<TransferDecorator> decorators = new ArrayList<>();
decorators.add(new IOLatencyDecorator(timerProviderFunction(), meterProvider(), cumulativeTimer()));
decorators.add(new NoCacheTransferDecorator(specialPathManager));
decorators.add(new UploadMetadataGenTransferDecorator(specialPathManager, timerProviderFunction()));
for (TransferDecorator decorator : transferDecorators) {
decorators.add(decorator);
}
decorators.add(getChecksummingTransferDecorator());
if (featureConfig.getFileChangeTracking()) {
decorators.add(new FileChangeTrackingDecorator(config));
}
transferDecorator = new TransferDecoratorManager(decorators);
}
Aggregations