@Service(value="downloadRemoteIndexScheduler#default") public class DefaultDownloadRemoteIndexScheduler extends Object implements ConfigurationListener, DownloadRemoteIndexScheduler
Modifier and Type | Field and Description |
---|---|
private ArchivaConfiguration |
archivaConfiguration |
private org.apache.maven.index.packer.IndexPacker |
indexPacker |
private org.apache.maven.index.updater.IndexUpdater |
indexUpdater |
private org.slf4j.Logger |
log |
private MavenIndexerUtils |
mavenIndexerUtils |
private NetworkProxyAdmin |
networkProxyAdmin |
private org.apache.maven.index.NexusIndexer |
nexusIndexer |
private PlexusSisuBridge |
plexusSisuBridge |
private ProxyConnectorAdmin |
proxyConnectorAdmin |
private RemoteRepositoryAdmin |
remoteRepositoryAdmin |
private List<String> |
runningRemoteDownloadIds |
private org.springframework.scheduling.TaskScheduler |
taskScheduler |
private WagonFactory |
wagonFactory |
Constructor and Description |
---|
DefaultDownloadRemoteIndexScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
configurationEvent(ConfigurationEvent event)
Generic event point to notify components that something has happend in the configuration.
|
List<String> |
getRunningRemoteDownloadIds() |
org.springframework.scheduling.TaskScheduler |
getTaskScheduler() |
void |
scheduleDownloadRemote(String repositoryId,
boolean now,
boolean fullDownload) |
void |
setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler) |
void |
shutdown() |
void |
startup() |
private org.slf4j.Logger log
@Inject @Named(value="taskScheduler#indexDownloadRemote") private org.springframework.scheduling.TaskScheduler taskScheduler
@Inject private ArchivaConfiguration archivaConfiguration
@Inject private WagonFactory wagonFactory
@Inject private RemoteRepositoryAdmin remoteRepositoryAdmin
@Inject private ProxyConnectorAdmin proxyConnectorAdmin
@Inject private NetworkProxyAdmin networkProxyAdmin
@Inject private PlexusSisuBridge plexusSisuBridge
@Inject private MavenIndexerUtils mavenIndexerUtils
private org.apache.maven.index.NexusIndexer nexusIndexer
private org.apache.maven.index.updater.IndexUpdater indexUpdater
private org.apache.maven.index.packer.IndexPacker indexPacker
private List<String> runningRemoteDownloadIds
public DefaultDownloadRemoteIndexScheduler()
@PostConstruct public void startup() throws ArchivaException, RepositoryAdminException, PlexusSisuBridgeException, IOException, org.apache.maven.index.context.UnsupportedExistingLuceneIndexException, DownloadRemoteIndexException
ArchivaException
RepositoryAdminException
PlexusSisuBridgeException
IOException
org.apache.maven.index.context.UnsupportedExistingLuceneIndexException
DownloadRemoteIndexException
@PreDestroy public void shutdown() throws RepositoryAdminException, IOException
RepositoryAdminException
IOException
public void configurationEvent(ConfigurationEvent event)
ConfigurationListener
configurationEvent
in interface ConfigurationListener
public void scheduleDownloadRemote(String repositoryId, boolean now, boolean fullDownload) throws DownloadRemoteIndexException
scheduleDownloadRemote
in interface DownloadRemoteIndexScheduler
DownloadRemoteIndexException
public org.springframework.scheduling.TaskScheduler getTaskScheduler()
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
public List<String> getRunningRemoteDownloadIds()
getRunningRemoteDownloadIds
in interface DownloadRemoteIndexScheduler
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.