org.sonatype.nexus.blobstore.BlobIdLocationResolver Java Examples

The following examples show how to use org.sonatype.nexus.blobstore.BlobIdLocationResolver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GoogleCloudBlobStore.java    From nexus-blobstore-google-cloud with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public GoogleCloudBlobStore(final GoogleCloudStorageFactory storageFactory,
                            final BlobIdLocationResolver blobIdLocationResolver,
                            final PeriodicJobService periodicJobService,
                            final GoogleCloudDatastoreFactory datastoreFactory,
                            final DryRunPrefix dryRunPrefix,
                            final Uploader uploader,
                            final MetricRegistry metricRegistry,
                            final BlobStoreQuotaService quotaService,
                            @Named("${nexus.blobstore.quota.warnIntervalSeconds:-60}")
                            final int quotaCheckInterval)
{
  super(blobIdLocationResolver, dryRunPrefix);
  this.periodicJobService = periodicJobService;
  this.storageFactory = checkNotNull(storageFactory);
  this.datastoreFactory = datastoreFactory;
  this.uploader = uploader;
  this.metricRegistry = metricRegistry;
  this.quotaService = quotaService;
  this.quotaCheckInterval = quotaCheckInterval;
}
 
Example #2
Source File: S3BlobStore.java    From nexus-public with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public S3BlobStore(final AmazonS3Factory amazonS3Factory,
                   final BlobIdLocationResolver blobIdLocationResolver,
                   @Named("${nexus.s3.uploaderName:-parallelUploader}") final S3Uploader uploader,
                   @Named("${nexus.s3.copierName:-parallelCopier}") final S3Copier copier,
                   final S3BlobStoreMetricsStore storeMetrics,
                   final DryRunPrefix dryRunPrefix,
                   final BucketManager bucketManager)
{
  super(blobIdLocationResolver, dryRunPrefix);
  this.amazonS3Factory = checkNotNull(amazonS3Factory);
  this.copier = checkNotNull(copier);
  this.uploader = checkNotNull(uploader);
  this.storeMetrics = checkNotNull(storeMetrics);
  this.bucketManager = checkNotNull(bucketManager);
}
 
Example #3
Source File: FileBlobStore.java    From nexus-public with Eclipse Public License 1.0 6 votes vote down vote up
@Inject
public FileBlobStore(final BlobIdLocationResolver blobIdLocationResolver,
                     final FileOperations fileOperations,
                     final ApplicationDirectories applicationDirectories,
                     final FileBlobStoreMetricsStore metricsStore,
                     final NodeAccess nodeAccess,
                     final DryRunPrefix dryRunPrefix)
{
  super(blobIdLocationResolver, dryRunPrefix);
  this.fileOperations = checkNotNull(fileOperations);
  this.applicationDirectories = checkNotNull(applicationDirectories);
  this.metricsStore = checkNotNull(metricsStore);
  this.nodeAccess = checkNotNull(nodeAccess);
  this.supportsHardLinkCopy = true;
  this.supportsAtomicMove = true;
}
 
Example #4
Source File: ShardedCounterMetricsStore.java    From nexus-blobstore-google-cloud with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @param locationResolver
 * @param datastoreFactory
 * @param blobStoreConfiguration
 */
ShardedCounterMetricsStore(final BlobIdLocationResolver locationResolver,
                           final GoogleCloudDatastoreFactory datastoreFactory,
                           final BlobStoreConfiguration blobStoreConfiguration) {
  this.locationResolver = locationResolver;
  this.datastoreFactory = datastoreFactory;
  this.blobStoreConfiguration = blobStoreConfiguration;
}
 
Example #5
Source File: S3BlobStore.java    From nexus-blobstore-s3 with Eclipse Public License 1.0 5 votes vote down vote up
@Inject
public S3BlobStore(final AmazonS3Factory amazonS3Factory,
                   final BlobIdLocationResolver blobIdLocationResolver,
                   final S3BlobStoreMetricsStore storeMetrics)
{
  this.amazonS3Factory = checkNotNull(amazonS3Factory);
  this.blobIdLocationResolver = checkNotNull(blobIdLocationResolver);
  this.storeMetrics = checkNotNull(storeMetrics);
}
 
Example #6
Source File: FileBlobStore.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
@VisibleForTesting
public FileBlobStore(final Path contentDir, //NOSONAR
                     final BlobIdLocationResolver blobIdLocationResolver,
                     final FileOperations fileOperations,
                     final FileBlobStoreMetricsStore metricsStore,
                     final BlobStoreConfiguration configuration,
                     final ApplicationDirectories directories,
                     final NodeAccess nodeAccess,
                     final DryRunPrefix dryRunPrefix)
{
  this(blobIdLocationResolver, fileOperations, directories, metricsStore, nodeAccess, dryRunPrefix);
  this.contentDir = checkNotNull(contentDir);
  this.blobStoreConfiguration = checkNotNull(configuration);
}