This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.configuration;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022/**
023 * Class SyncConnectorConfiguration.
024 * 
025 * @version $Revision$ $Date$
026 */
027@SuppressWarnings( "all" )
028public class SyncConnectorConfiguration
029    extends AbstractRepositoryConnectorConfiguration
030    implements java.io.Serializable
031{
032
033      //--------------------------/
034     //- Class/Member Variables -/
035    //--------------------------/
036
037    /**
038     * When to run the sync mechanism. Default is every hour on the
039     * hour.
040     */
041    private String cronExpression = "0 0 * * * ?";
042
043    /**
044     * The type of synchronization to use.
045     */
046    private String method = "rsync";
047
048
049      //-----------/
050     //- Methods -/
051    //-----------/
052
053    /**
054     * Get when to run the sync mechanism. Default is every hour on
055     * the hour.
056     * 
057     * @return String
058     */
059    public String getCronExpression()
060    {
061        return this.cronExpression;
062    } //-- String getCronExpression()
063
064    /**
065     * Get the type of synchronization to use.
066     * 
067     * @return String
068     */
069    public String getMethod()
070    {
071        return this.method;
072    } //-- String getMethod()
073
074    /**
075     * Set when to run the sync mechanism. Default is every hour on
076     * the hour.
077     * 
078     * @param cronExpression
079     */
080    public void setCronExpression( String cronExpression )
081    {
082        this.cronExpression = cronExpression;
083    } //-- void setCronExpression( String )
084
085    /**
086     * Set the type of synchronization to use.
087     * 
088     * @param method
089     */
090    public void setMethod( String method )
091    {
092        this.method = method;
093    } //-- void setMethod( String )
094
095}