Class FileNameProducer


  • public class FileNameProducer
    extends Object
    Created by The eXo Platform SARL Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua Nov 20, 2007
    • 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