@Service(value="taskExecutor#repository-scanning") public class ArchivaRepositoryScanningTaskExecutor extends Object implements org.apache.archiva.redback.components.taskqueue.execution.TaskExecutor<RepositoryTask>
Modifier and Type | Field and Description |
---|---|
private RepositoryContentConsumers |
consumers |
private org.slf4j.Logger |
log |
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private RepositoryScanner |
repoScanner |
private RepositorySessionFactory |
repositorySessionFactory
FIXME: this could be multiple implementations and needs to be configured.
|
private RepositoryStatisticsManager |
repositoryStatisticsManager |
private org.apache.archiva.redback.components.taskqueue.Task |
task |
Constructor and Description |
---|
ArchivaRepositoryScanningTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
executeTask(RepositoryTask task) |
RepositoryContentConsumers |
getConsumers() |
org.apache.archiva.redback.components.taskqueue.Task |
getCurrentTaskInExecution() |
ManagedRepositoryAdmin |
getManagedRepositoryAdmin() |
RepositoryScanner |
getRepoScanner() |
RepositorySessionFactory |
getRepositorySessionFactory() |
RepositoryStatisticsManager |
getRepositoryStatisticsManager() |
void |
initialize() |
void |
setConsumers(RepositoryContentConsumers consumers) |
void |
setManagedRepositoryAdmin(ManagedRepositoryAdmin managedRepositoryAdmin) |
void |
setRepoScanner(RepositoryScanner repoScanner) |
void |
setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory) |
void |
setRepositoryStatisticsManager(RepositoryStatisticsManager repositoryStatisticsManager) |
private org.slf4j.Logger log
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
@Inject private RepositoryScanner repoScanner
@Inject private RepositoryContentConsumers consumers
private org.apache.archiva.redback.components.taskqueue.Task task
@Inject private RepositoryStatisticsManager repositoryStatisticsManager
@Inject private RepositorySessionFactory repositorySessionFactory
public ArchivaRepositoryScanningTaskExecutor()
@PostConstruct public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public void executeTask(RepositoryTask task) throws org.apache.archiva.redback.components.taskqueue.execution.TaskExecutionException
executeTask
in interface org.apache.archiva.redback.components.taskqueue.execution.TaskExecutor<RepositoryTask>
org.apache.archiva.redback.components.taskqueue.execution.TaskExecutionException
public org.apache.archiva.redback.components.taskqueue.Task getCurrentTaskInExecution()
public RepositoryScanner getRepoScanner()
public void setRepoScanner(RepositoryScanner repoScanner)
public RepositoryContentConsumers getConsumers()
public void setConsumers(RepositoryContentConsumers consumers)
public RepositorySessionFactory getRepositorySessionFactory()
public void setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory)
public RepositoryStatisticsManager getRepositoryStatisticsManager()
public void setRepositoryStatisticsManager(RepositoryStatisticsManager repositoryStatisticsManager)
public ManagedRepositoryAdmin getManagedRepositoryAdmin()
public void setManagedRepositoryAdmin(ManagedRepositoryAdmin managedRepositoryAdmin)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.