@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
ArchivaExceptionRepositoryAdminExceptionPlexusSisuBridgeExceptionIOExceptionorg.apache.maven.index.context.UnsupportedExistingLuceneIndexExceptionDownloadRemoteIndexException@PreDestroy public void shutdown() throws RepositoryAdminException, IOException
RepositoryAdminExceptionIOExceptionpublic void configurationEvent(ConfigurationEvent event)
ConfigurationListenerconfigurationEvent in interface ConfigurationListenerpublic void scheduleDownloadRemote(String repositoryId, boolean now, boolean fullDownload) throws DownloadRemoteIndexException
scheduleDownloadRemote in interface DownloadRemoteIndexSchedulerDownloadRemoteIndexExceptionpublic org.springframework.scheduling.TaskScheduler getTaskScheduler()
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
public List<String> getRunningRemoteDownloadIds()
getRunningRemoteDownloadIds in interface DownloadRemoteIndexSchedulerCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.