Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2009 eXo Platform SAS.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
   * the License, or (at your option) any later version.
   *
   * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.exoplatform.services.jcr.ext.backup.server.bean;
 
Created by The eXo Platform SAS.
Date: 26.03.2009

Author(s):
Alex Reshetnyak
Version:
$Id: BackupConfigBeen.java 111 2008-11-11 11:11:11Z rainf0x $
 
 public class BackupConfigBean
 {

   
The backup type (full or full+incremental).
 
    private Integer backupType;

   
The incremental job period.
 
    private Long incrementalJobPeriod;

   
The incremental repetition number.
 
    private Integer incrementalRepetitionNumber = 0;

   
The BackupJobConfig to full backup.
 
    private BackupJobConfig fullBackupJobConfig = new BackupJobConfig();

   
The BackupJobConfig to incremental backup.
 
The folder for backup data.
 
    private String backupDir;

   
BackupConfigBeen constructor. Empty constructor for JSON.
 
    public BackupConfigBean()
    {
    }

   
BackupConfigBeen constructor. Constructor for full backup.

Parameters:
backupType Integer, backup tyeps
backupDir String, path to backup folder
 
    public BackupConfigBean(Integer backupTypeString backupDir)
    {
       this(backupTypebackupDir, (long)0);
    }

   
BackupConfigBeen constructor. Constructor for full + incremental backup.

Parameters:
backupType Integer, backup tyeps
backupDir String, path to backup folder
incrementalJobPeriod Long, incremental job period
 
    public BackupConfigBean(Integer backupTypeString backupDirLong incrementalJobPeriod)
   {
      this. = backupType;
      this. = backupDir;
      this. = incrementalJobPeriod;
   }

   
BackupConfigBeen constructor. Constructor for full + incremental backup.

Parameters:
backupType Integer, backup tyeps
backupDir String, path to backup folder
incrementalJobPeriod Long, incremental job period
incrementalRepetitionNumber Integer, incremental repetition number
   public BackupConfigBean(Integer backupTypeString backupDirLong incrementalJobPeriod,
      Integer incrementalRepetitionNumber)
   {
      this. = backupType;
      this. = backupDir;
      this. = incrementalJobPeriod;
      this. = incrementalRepetitionNumber;
   }

   
BackupConfigBeen constructor.

Parameters:
config the backup config
   public BackupConfigBean(BackupConfig config)
   {
      this(config.getBackupType(), PrivilegedFileHelper.getAbsolutePath(config.getBackupDir()), config
         .getIncrementalJobPeriod());
   }

   
BackupConfigBeen constructor.

Parameters:
config the backup config
   {
      this(config.getBackupType(), PrivilegedFileHelper.getAbsolutePath(config.getBackupDir()), config
         .getIncrementalJobPeriod());
   }

   
getIncrementalJobPeriod.

Returns:
Long return the incremental job period
   {
      return ;
   }

   
setIncrementalJobPeriod.

Parameters:
incrementalJobPeriod Long, the incremental job period
   public void setIncrementalJobPeriod(Long incrementalJobPeriod)
   {
      this. = incrementalJobPeriod;
   }

   
getBackupDir.

Returns:
String return path to backup folder
   public String getBackupDir()
   {
      return ;
   }

   
setBackupDir.

Parameters:
backupDir String, path to backup folder
   public void setBackupDir(String backupDir)
   {
      this. = backupDir;
   }

   
getBackupType.

Returns:
Integer return the backup type
   public Integer getBackupType()
   {
      return ;
   }

   
setBackupType.

Parameters:
backupType Integer, the backup type
   public void setBackupType(Integer backupType)
   {
      this. = backupType;
   }

   
getIncrementalRepetitionNumber.

Returns:
Integer return the incremental repetition number
   {
      return ;
   }

   
setIncrementalRepetitionNumber.

Parameters:
incrementalRepetitionNumber Integer, incremental repetition number
   public void setIncrementalRepetitionNumber(Integer incrementalRepetitionNumber)
   {
      this. = incrementalRepetitionNumber;
   }

   
getFullBackupJobConfig.

Returns:
BackupJobConfig return the backup job configuration to full backup
   {
      return ;
   }

   
setFullBackupJobConfig.

Parameters:
fullBackupJobConfig BackupJobConfig the backup job configuration to full backup
   public void setFullBackupJobConfig(BackupJobConfig fullBackupJobConfig)
   {
      this. = fullBackupJobConfig;
   }

   
getIncrementalBackupJobConfig.

Returns:
BackupJobConfig return the backup job configuration to incremental backup
   {
      return ;
   }

   
setIncrementalBackupJobConfig.

Parameters:
incrementalBackupJobConfig BackupJobConfig the backup job configuration to incremental backup
   public void setIncrementalBackupJobConfig(BackupJobConfig incrementalBackupJobConfig)
   {
      this. = incrementalBackupJobConfig;
   }
New to GrepCode? Check out our FAQ X