diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-17 07:28:54 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-17 07:28:54 +0000 |
commit | af520c00cfe4ffb0790a30e916f538b84ee8667b (patch) | |
tree | b923d139fb309c1d08e2ad56b66a11b34b42a213 /archiva-modules/archiva-scheduler/archiva-scheduler-api | |
parent | b67de4117e723519ca95277c77b983a9ca69b867 (diff) | |
download | archiva-af520c00cfe4ffb0790a30e916f538b84ee8667b.tar.gz archiva-af520c00cfe4ffb0790a30e916f538b84ee8667b.zip |
[MRM-1746] build merged index for groups with a cron schedule
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551473 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-api')
2 files changed, 41 insertions, 0 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml index 52e6b49d1..18e7d3112 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-api/pom.xml @@ -51,6 +51,7 @@ </Export-Package> <Import-Package> org.apache.archiva.redback.components.taskqueue, + org.apache.archiva.admin.model.beans </Import-Package> </instructions> </configuration> diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-api/src/main/java/org/apache/archiva/scheduler/MergedRemoteIndexesScheduler.java b/archiva-modules/archiva-scheduler/archiva-scheduler-api/src/main/java/org/apache/archiva/scheduler/MergedRemoteIndexesScheduler.java new file mode 100644 index 000000000..ae96cfe64 --- /dev/null +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-api/src/main/java/org/apache/archiva/scheduler/MergedRemoteIndexesScheduler.java @@ -0,0 +1,40 @@ +package org.apache.archiva.scheduler; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.archiva.admin.model.beans.RepositoryGroup; + +/** + * @author Olivier Lamy + * @since 2.0.0 + */ +public interface MergedRemoteIndexesScheduler +{ + + /** + * will check if this repository group need to a schedule a cron to download/merge + * remote indexes + * @param repositoryGroup + */ + void schedule( RepositoryGroup repositoryGroup ); + + void unschedule( RepositoryGroup repositoryGroup ); + +} |