diff options
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 ); + +} |