@Named
@Singleton
public class BlobStoreManagerImpl
extends org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport
implements org.sonatype.nexus.blobstore.api.BlobStoreManager, org.sonatype.nexus.common.event.EventAware
BlobStoreManager
implementation.Constructor and Description |
---|
BlobStoreManagerImpl(org.sonatype.nexus.common.event.EventManager eventManager,
BlobStoreConfigurationStore store,
Map<String,org.sonatype.nexus.blobstore.BlobStoreDescriptor> blobStoreDescriptors,
Map<String,javax.inject.Provider<org.sonatype.nexus.blobstore.api.BlobStore>> blobStorePrototypes,
org.sonatype.nexus.orient.freeze.DatabaseFreezeService databaseFreezeService,
javax.inject.Provider<RepositoryManager> repositoryManagerProvider,
org.sonatype.nexus.common.node.NodeAccess nodeAccess,
Boolean provisionDefaults) |
Modifier and Type | Method and Description |
---|---|
long |
blobStoreUsageCount(String blobStoreName) |
Iterable<org.sonatype.nexus.blobstore.api.BlobStore> |
browse() |
org.sonatype.nexus.blobstore.api.BlobStore |
create(org.sonatype.nexus.blobstore.api.BlobStoreConfiguration configuration) |
void |
delete(String name) |
protected void |
doStart() |
protected void |
doStop() |
boolean |
exists(String name) |
void |
forceDelete(String name) |
org.sonatype.nexus.blobstore.api.BlobStore |
get(String name) |
Optional<String> |
getParent(String blobStoreName) |
boolean |
isPromotable(String blobStoreName) |
void |
on(BlobStoreConfigurationCreatedEvent event) |
void |
on(BlobStoreConfigurationDeletedEvent event) |
void |
on(BlobStoreConfigurationUpdatedEvent event) |
org.sonatype.nexus.blobstore.api.BlobStore |
update(org.sonatype.nexus.blobstore.api.BlobStoreConfiguration configuration) |
getStateGuard, isStarted, start, stop
@Inject public BlobStoreManagerImpl(org.sonatype.nexus.common.event.EventManager eventManager, BlobStoreConfigurationStore store, Map<String,org.sonatype.nexus.blobstore.BlobStoreDescriptor> blobStoreDescriptors, Map<String,javax.inject.Provider<org.sonatype.nexus.blobstore.api.BlobStore>> blobStorePrototypes, org.sonatype.nexus.orient.freeze.DatabaseFreezeService databaseFreezeService, javax.inject.Provider<RepositoryManager> repositoryManagerProvider, org.sonatype.nexus.common.node.NodeAccess nodeAccess, @Nullable @Named(value="${nexus.blobstore.provisionDefaults}") Boolean provisionDefaults)
protected void doStart() throws Exception
doStart
in class org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport
Exception
protected void doStop() throws Exception
doStop
in class org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport
Exception
public Iterable<org.sonatype.nexus.blobstore.api.BlobStore> browse()
browse
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
public org.sonatype.nexus.blobstore.api.BlobStore create(org.sonatype.nexus.blobstore.api.BlobStoreConfiguration configuration) throws Exception
create
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
Exception
public org.sonatype.nexus.blobstore.api.BlobStore update(org.sonatype.nexus.blobstore.api.BlobStoreConfiguration configuration) throws Exception
update
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
Exception
@Nullable public org.sonatype.nexus.blobstore.api.BlobStore get(String name)
get
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
public void delete(String name) throws Exception
delete
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
Exception
public void forceDelete(String name) throws Exception
forceDelete
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
Exception
public boolean exists(String name)
exists
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
public void on(BlobStoreConfigurationCreatedEvent event)
public void on(BlobStoreConfigurationDeletedEvent event)
public void on(BlobStoreConfigurationUpdatedEvent event)
public long blobStoreUsageCount(String blobStoreName)
blobStoreUsageCount
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
public boolean isPromotable(String blobStoreName)
isPromotable
in interface org.sonatype.nexus.blobstore.api.BlobStoreManager
Copyright © 2008–2019 Sonatype, Inc.. All rights reserved.