1 package org.apache.archiva.configuration;
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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
23 * Class SyncConnectorConfiguration.
25 * @version $Revision$ $Date$
27 @SuppressWarnings( "all" )
28 public class SyncConnectorConfiguration
29 extends AbstractRepositoryConnectorConfiguration
30 implements java.io.Serializable
33 //--------------------------/
34 //- Class/Member Variables -/
35 //--------------------------/
38 * When to run the sync mechanism. Default is every hour on the
41 private String cronExpression = "0 0 * * * ?";
44 * The type of synchronization to use.
46 private String method = "rsync";
54 * Get when to run the sync mechanism. Default is every hour on
59 public String getCronExpression()
61 return this.cronExpression;
62 } //-- String getCronExpression()
65 * Get the type of synchronization to use.
69 public String getMethod()
72 } //-- String getMethod()
75 * Set when to run the sync mechanism. Default is every hour on
78 * @param cronExpression
80 public void setCronExpression( String cronExpression )
82 this.cronExpression = cronExpression;
83 } //-- void setCronExpression( String )
86 * Set the type of synchronization to use.
90 public void setMethod( String method )
93 } //-- void setMethod( String )