|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.syslib.FarragoBackupRestoreUtil
public abstract class FarragoBackupRestoreUtil
FarragoBackupRestoreUtil contains utility methods used by backup and restore.
Field Summary | |
---|---|
private static String |
CATALOG_BACKUP_FILENAME
|
Constructor Summary | |
---|---|
FarragoBackupRestoreUtil()
|
Method Summary | |
---|---|
private static void |
checkBackupFile(String archiveDirectory,
String filename,
boolean isBackup)
|
static void |
checkBackupFiles(String archiveDirectory,
boolean isCompressed,
boolean isBackup)
Verifies the existence or non-existence of files in the archive directory. |
static FarragoBackupType |
getBackupType(String backupType)
Translates a string representing a backup type (full, incremental, or differential) into a symbolic value. |
static File |
getCatalogBackupFile(String archiveDir,
boolean isCompressed)
Returns the catalog backup file name relative to the given archive directory. |
static boolean |
isCompressed(String compressionMode)
Validates a string representing the compression mode of a backup. |
static String |
validateArchiveDirectory(String directory,
boolean isBackup)
Validates the archive directory, expanding property names within the name, as needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String CATALOG_BACKUP_FILENAME
Constructor Detail |
---|
public FarragoBackupRestoreUtil()
Method Detail |
---|
public static String validateArchiveDirectory(String directory, boolean isBackup)
directory
- the full pathname of the archive directoryisBackup
- true if this is a backup, as opposed to a restore
public static FarragoBackupType getBackupType(String backupType)
backupType
- string value of the backup type
public static void checkBackupFiles(String archiveDirectory, boolean isCompressed, boolean isBackup) throws Exception
archiveDirectory
- the name of the archive directoryisCompressed
- whether the backup is compressedisBackup
- true if the files are going to be used for a backup, as
opposed to a restore
Exception
private static void checkBackupFile(String archiveDirectory, String filename, boolean isBackup) throws Exception
Exception
public static boolean isCompressed(String compressionMode)
compressionMode
- string value indicating the compression mode
public static File getCatalogBackupFile(String archiveDir, boolean isCompressed)
archiveDir
- archive directoryisCompressed
- whether compression is enabled
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |