Class FileNameProducer
- java.lang.Object
-
- 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
Constructors Constructor Description FileNameProducer()Empty constructor.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.FileNameProducer(String backupSetName, String backupDir, Calendar timeStamp, boolean isFullBackup, boolean isDirectory)Constructor FileNameProducer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilegenerateBackupSetDir(String repositoryName, String workspaceName, String backupDir, Calendar timeStamp)FilegetBackupSetDir()Get Backup set directory.FilegetNextFile()Get next file in backup set.
-
-
-
Constructor Detail
-
FileNameProducer
public FileNameProducer(String backupSetName, String backupDir, Calendar timeStamp, boolean isFullBackup, boolean isDirectory)
Constructor FileNameProducer.- Parameters:
backupSetName- backup set namebackupDir- backup directorytimeStamp- time stamp for creation unique backup set directoryisFullBackup- indicates is full backup or notisDirectory- 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 nameworkspaceName- workspace name for creation backup set namebackupDir- backup directorytimeStamp- time stamp for creation unique backup set directoryisFullBackup- indicates is full backup or notisDirectory- 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 nameworkspaceName- workspace name for creation backup set namebackupDir- backup directorytimeStamp- time stamp for creation unique backup set directoryisFullBackup- 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
-
-