eXo JCR :: Component :: Extension Service 1.15.0-CR2

org.exoplatform.services.jcr.ext.backup.impl
Class FileNameProducer

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.backup.impl.FileNameProducer

public class FileNameProducer
extends Object

Created by The eXo Platform SARL Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua Nov 20, 2007


Constructor Summary
FileNameProducer()
          Empty constructor.
FileNameProducer(String backupSetName, String backupDir, Calendar timeStamp, boolean isFullBackup, boolean isDirectory)
          Constructor FileNameProducer.
FileNameProducer(String repositoryName, String workspaceName, String backupDir, Calendar timeStamp, boolean isFullBackup)
          Constructor FileNameProducer.
FileNameProducer(String repositoryName, String workspaceName, String backupDir, Calendar timeStamp, boolean isFullBackup, boolean isDirectory)
          Constructor FileNameProducer.
 
Method Summary
static File generateBackupSetDir(String repositoryName, String workspaceName, String backupDir, Calendar timeStamp)
           
 File getBackupSetDir()
          Get Backup set directory.
 File getNextFile()
          Get next file in backup set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameProducer

public FileNameProducer(String backupSetName,
                        String backupDir,
                        Calendar timeStamp,
                        boolean isFullBackup,
                        boolean isDirectory)
Constructor FileNameProducer.

Parameters:
backupSetName - backup set name
backupDir - backup directory
timeStamp - time stamp for creation unique backup set directory
isFullBackup - indicates is full backup or not
isDirectory - indicates that need to create a directory for full backup otherwise is will be the single file

FileNameProducer

public FileNameProducer(String repositoryName,
                        String workspaceName,
                        String backupDir,
                        Calendar timeStamp,
                        boolean isFullBackup,
                        boolean isDirectory)
Constructor FileNameProducer.

Parameters:
repositoryName - repository name for creation backup set name
workspaceName - workspace name for creation backup set name
backupDir - backup directory
timeStamp - time stamp for creation unique backup set directory
isFullBackup - indicates is full backup or not
isDirectory - indicates that need to create a directory for full backup otherwise is will be the single file

FileNameProducer

public FileNameProducer(String repositoryName,
                        String workspaceName,
                        String backupDir,
                        Calendar timeStamp,
                        boolean isFullBackup)
Constructor FileNameProducer.

Parameters:
repositoryName - repository name for creation backup set name
workspaceName - workspace name for creation backup set name
backupDir - backup directory
timeStamp - time stamp for creation unique backup set directory
isFullBackup - indicates is full backup or not

FileNameProducer

public FileNameProducer()
Empty constructor.

Method Detail

generateBackupSetDir

public static File generateBackupSetDir(String repositoryName,
                                        String workspaceName,
                                        String backupDir,
                                        Calendar timeStamp)

getNextFile

public File getNextFile()
Get next file in backup set.

Returns:
file

getBackupSetDir

public File getBackupSetDir()
Get Backup set directory.

Returns:
File The backup set directory

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.