1 package org.apache.archiva.configuration; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 /** 23 * Class SyncConnectorConfiguration. 24 * 25 * @version $Revision$ $Date$ 26 */ 27 @SuppressWarnings( "all" ) 28 public class SyncConnectorConfiguration 29 extends AbstractRepositoryConnectorConfiguration 30 implements java.io.Serializable 31 { 32 33 //--------------------------/ 34 //- Class/Member Variables -/ 35 //--------------------------/ 36 37 /** 38 * When to run the sync mechanism. Default is every hour on the 39 * hour. 40 */ 41 private String cronExpression = "0 0 * * * ?"; 42 43 /** 44 * The type of synchronization to use. 45 */ 46 private String method = "rsync"; 47 48 49 //-----------/ 50 //- Methods -/ 51 //-----------/ 52 53 /** 54 * Get when to run the sync mechanism. Default is every hour on 55 * the hour. 56 * 57 * @return String 58 */ 59 public String getCronExpression() 60 { 61 return this.cronExpression; 62 } //-- String getCronExpression() 63 64 /** 65 * Get the type of synchronization to use. 66 * 67 * @return String 68 */ 69 public String getMethod() 70 { 71 return this.method; 72 } //-- String getMethod() 73 74 /** 75 * Set when to run the sync mechanism. Default is every hour on 76 * the hour. 77 * 78 * @param cronExpression 79 */ 80 public void setCronExpression( String cronExpression ) 81 { 82 this.cronExpression = cronExpression; 83 } //-- void setCronExpression( String ) 84 85 /** 86 * Set the type of synchronization to use. 87 * 88 * @param method 89 */ 90 public void setMethod( String method ) 91 { 92 this.method = method; 93 } //-- void setMethod( String ) 94 95 }