@Service(value="mergedRemoteIndexesScheduler#default") public class DefaultMergedRemoteIndexesScheduler extends Object implements MergedRemoteIndexesScheduler
Modifier and Type | Field and Description |
---|---|
private IndexMerger |
indexMerger |
private org.slf4j.Logger |
logger |
private Map<String,ScheduledFuture> |
scheduledFutureMap |
private org.springframework.scheduling.TaskScheduler |
taskScheduler |
Constructor and Description |
---|
DefaultMergedRemoteIndexesScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
schedule(RepositoryGroup repositoryGroup,
File directory)
will check if this repository group need to a schedule a cron to download/merge
remote indexes
|
void |
unschedule(RepositoryGroup repositoryGroup) |
private org.slf4j.Logger logger
@Inject @Named(value="taskScheduler#mergeRemoteIndexes") private org.springframework.scheduling.TaskScheduler taskScheduler
@Inject private IndexMerger indexMerger
private Map<String,ScheduledFuture> scheduledFutureMap
public DefaultMergedRemoteIndexesScheduler()
public void schedule(RepositoryGroup repositoryGroup, File directory)
MergedRemoteIndexesScheduler
schedule
in interface MergedRemoteIndexesScheduler
public void unschedule(RepositoryGroup repositoryGroup)
unschedule
in interface MergedRemoteIndexesScheduler
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.