org.apache.maven.archiva.configuration.SyncConnectorConfiguration Maven / Gradle / Ivy
The newest version!
/*
* $Id$
*/
package org.apache.maven.archiva.configuration;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.util.Date;
/**
* null
*
* @version $Revision$ $Date$
*/
public class SyncConnectorConfiguration extends AbstractRepositoryConnectorConfiguration
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field cronExpression
*/
private String cronExpression = "0 0 * * * ?";
/**
* Field method
*/
private String method = "rsync";
//-----------/
//- Methods -/
//-----------/
/**
* Get When to run the sync mechanism. Default is every hour on
* the hour.
*/
public String getCronExpression()
{
return this.cronExpression;
} //-- String getCronExpression()
/**
* Get The type of synchronization to use.
*/
public String getMethod()
{
return this.method;
} //-- String getMethod()
/**
* Set When to run the sync mechanism. Default is every hour on
* the hour.
*
* @param cronExpression
*/
public void setCronExpression(String cronExpression)
{
this.cronExpression = cronExpression;
} //-- void setCronExpression(String)
/**
* Set The type of synchronization to use.
*
* @param method
*/
public void setMethod(String method)
{
this.method = method;
} //-- void setMethod(String)
private String modelEncoding = "UTF-8";
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
}
public String getModelEncoding()
{
return modelEncoding;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy