com.sun.enterprise.backup
Class RestoreManager

java.lang.Object
  extended by com.sun.enterprise.backup.RestoreManager

public class RestoreManager
extends java.lang.Object

Author:
Byron Nevins

Constructor Summary
RestoreManager(BackupRequest req)
           
 
Method Summary
protected  java.io.File getBackupDirectory(BackupRequest request)
          If both the backupDir and backupConfig are not set then this method behaves as it did in v2.
 java.lang.String restore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreManager

public RestoreManager(BackupRequest req)
               throws BackupException
Throws:
BackupException
Method Detail

restore

public java.lang.String restore()
                         throws BackupException
Throws:
BackupException

getBackupDirectory

protected java.io.File getBackupDirectory(BackupRequest request)
If both the backupDir and backupConfig are not set then this method behaves as it did in v2. It returns a path to the domainDir + BACKUP_DIR (backups). If a backupConfig has been associated with the request and the backupDir is not set then it returns a path to domainDir + backupConfig. If a backupConfig has been associated with the request and the backupDir is set then it returns a path to backupDir + domainName + backupConfig. If a backupConfig has not been associated with the request and the backupDir is set then it returns a path to backupDir + domainName.



Copyright © 2012 GlassFish Community. All Rights Reserved.