Coverage Report - org.apache.maven.archiva.configuration.SyncConnectorConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
SyncConnectorConfiguration
0%
0/9
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.archiva.configuration;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * Class SyncConnectorConfiguration.
 15  
  * 
 16  
  * @version $Revision$ $Date$
 17  
  */
 18  0
 public class SyncConnectorConfiguration
 19  
     extends AbstractRepositoryConnectorConfiguration
 20  
     implements java.io.Serializable
 21  
 {
 22  
 
 23  
       //--------------------------/
 24  
      //- Class/Member Variables -/
 25  
     //--------------------------/
 26  
 
 27  
     /**
 28  
      * When to run the sync mechanism. Default is every hour on the
 29  
      * hour.
 30  
      */
 31  0
     private String cronExpression = "0 0 * * * ?";
 32  
 
 33  
     /**
 34  
      * The type of synchronization to use.
 35  
      */
 36  0
     private String method = "rsync";
 37  
 
 38  
 
 39  
       //-----------/
 40  
      //- Methods -/
 41  
     //-----------/
 42  
 
 43  
     /**
 44  
      * Get when to run the sync mechanism. Default is every hour on
 45  
      * the hour.
 46  
      * 
 47  
      * @return String
 48  
      */
 49  
     public String getCronExpression()
 50  
     {
 51  0
         return this.cronExpression;
 52  
     } //-- String getCronExpression()
 53  
 
 54  
     /**
 55  
      * Get the type of synchronization to use.
 56  
      * 
 57  
      * @return String
 58  
      */
 59  
     public String getMethod()
 60  
     {
 61  0
         return this.method;
 62  
     } //-- String getMethod()
 63  
 
 64  
     /**
 65  
      * Set when to run the sync mechanism. Default is every hour on
 66  
      * the hour.
 67  
      * 
 68  
      * @param cronExpression
 69  
      */
 70  
     public void setCronExpression( String cronExpression )
 71  
     {
 72  0
         this.cronExpression = cronExpression;
 73  0
     } //-- void setCronExpression( String )
 74  
 
 75  
     /**
 76  
      * Set the type of synchronization to use.
 77  
      * 
 78  
      * @param method
 79  
      */
 80  
     public void setMethod( String method )
 81  
     {
 82  0
         this.method = method;
 83  0
     } //-- void setMethod( String )
 84  
 
 85  
 
 86  
 }