org.apache.archiva.scheduler.indexing
Class DefaultDownloadRemoteIndexScheduler

java.lang.Object
  extended by org.apache.archiva.scheduler.indexing.DefaultDownloadRemoteIndexScheduler
All Implemented Interfaces:
ConfigurationListener, DownloadRemoteIndexScheduler

@Service(value="downloadRemoteIndexScheduler#default")
public class DefaultDownloadRemoteIndexScheduler
extends Object
implements ConfigurationListener, DownloadRemoteIndexScheduler

Since:
1.4-M1
Author:
Olivier Lamy

Field Summary
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 Summary
DefaultDownloadRemoteIndexScheduler()
           
 
Method Summary
 void configurationEvent(ConfigurationEvent event)
          Generic event point to notify components that something has happend in the configuration.
 org.springframework.scheduling.TaskScheduler getTaskScheduler()
           
 void scheduleDownloadRemote(String repositoryId, boolean now, boolean fullDownload)
           
 void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.slf4j.Logger log

taskScheduler

@Inject
@Named(value="taskScheduler#indexDownloadRemote")
private org.springframework.scheduling.TaskScheduler taskScheduler

archivaConfiguration

@Inject
private ArchivaConfiguration archivaConfiguration

wagonFactory

@Inject
private WagonFactory wagonFactory

remoteRepositoryAdmin

@Inject
private RemoteRepositoryAdmin remoteRepositoryAdmin

proxyConnectorAdmin

@Inject
private ProxyConnectorAdmin proxyConnectorAdmin

networkProxyAdmin

@Inject
private NetworkProxyAdmin networkProxyAdmin

plexusSisuBridge

@Inject
private PlexusSisuBridge plexusSisuBridge

mavenIndexerUtils

@Inject
private MavenIndexerUtils mavenIndexerUtils

nexusIndexer

private org.apache.maven.index.NexusIndexer nexusIndexer

indexUpdater

private org.apache.maven.index.updater.IndexUpdater indexUpdater

indexPacker

private org.apache.maven.index.packer.IndexPacker indexPacker

runningRemoteDownloadIds

private List<String> runningRemoteDownloadIds
Constructor Detail

DefaultDownloadRemoteIndexScheduler

public DefaultDownloadRemoteIndexScheduler()
Method Detail

startup

@PostConstruct
public void startup()
             throws ArchivaException,
                    RepositoryAdminException,
                    PlexusSisuBridgeException,
                    IOException,
                    org.apache.maven.index.context.UnsupportedExistingLuceneIndexException,
                    DownloadRemoteIndexException
Throws:
ArchivaException
RepositoryAdminException
PlexusSisuBridgeException
IOException
org.apache.maven.index.context.UnsupportedExistingLuceneIndexException
DownloadRemoteIndexException

shutdown

@PreDestroy
public void shutdown()
              throws RepositoryAdminException,
                     IOException
Throws:
RepositoryAdminException
IOException

configurationEvent

public void configurationEvent(ConfigurationEvent event)
Description copied from interface: ConfigurationListener
Generic event point to notify components that something has happend in the configuration.

Specified by:
configurationEvent in interface ConfigurationListener

scheduleDownloadRemote

public void scheduleDownloadRemote(String repositoryId,
                                   boolean now,
                                   boolean fullDownload)
                            throws DownloadRemoteIndexException
Specified by:
scheduleDownloadRemote in interface DownloadRemoteIndexScheduler
Throws:
DownloadRemoteIndexException

getTaskScheduler

public org.springframework.scheduling.TaskScheduler getTaskScheduler()

setTaskScheduler

public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.