@Service(value="archivaTaskScheduler#repository") public class DefaultRepositoryArchivaTaskScheduler extends Object implements RepositoryArchivaTaskScheduler, ConfigurationListener
Modifier and Type | Field and Description |
---|---|
static String |
CRON_HOURLY |
Constructor and Description |
---|
DefaultRepositoryArchivaTaskScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
configurationEvent(ConfigurationEvent event)
Generic event point to notify components that something has happend in the configuration.
|
boolean |
isProcessingRepositoryTask(RepositoryTask task) |
boolean |
isProcessingRepositoryTask(String repositoryId) |
void |
queueTask(RepositoryTask task)
Adds the task to the scanning queue.
|
void |
startup() |
void |
stop() |
boolean |
unQueueTask(RepositoryTask task) |
public static final String CRON_HOURLY
public DefaultRepositoryArchivaTaskScheduler()
@PostConstruct public void startup() throws ArchivaException
ArchivaException
@PreDestroy public void stop() throws org.quartz.SchedulerException
org.quartz.SchedulerException
public boolean isProcessingRepositoryTask(String repositoryId)
isProcessingRepositoryTask
in interface RepositoryArchivaTaskScheduler
public boolean isProcessingRepositoryTask(RepositoryTask task)
isProcessingRepositoryTask
in interface RepositoryArchivaTaskScheduler
public void queueTask(RepositoryTask task) throws org.apache.archiva.components.taskqueue.TaskQueueException
ArchivaTaskScheduler
queueTask
in interface ArchivaTaskScheduler<RepositoryTask>
queueTask
in interface RepositoryArchivaTaskScheduler
org.apache.archiva.components.taskqueue.TaskQueueException
public boolean unQueueTask(RepositoryTask task) throws org.apache.archiva.components.taskqueue.TaskQueueException
unQueueTask
in interface RepositoryArchivaTaskScheduler
org.apache.archiva.components.taskqueue.TaskQueueException
public void configurationEvent(ConfigurationEvent event)
ConfigurationListener
configurationEvent
in interface ConfigurationListener
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.