Search in sources :

Example 1 with RestoreManager

use of com.sun.enterprise.backup.RestoreManager in project Payara by payara.

the class RestoreDomainCommand method executeCommand.

/**
 */
@Override
protected int executeCommand() throws CommandException {
    try {
        RestoreManager mgr = new RestoreManager(request);
        logger.info(mgr.restore());
    } catch (BackupWarningException bwe) {
        logger.info(bwe.getMessage());
    } catch (BackupException be) {
        throw new CommandException(be);
    }
    return 0;
}
Also used : BackupException(com.sun.enterprise.backup.BackupException) BackupWarningException(com.sun.enterprise.backup.BackupWarningException) RestoreManager(com.sun.enterprise.backup.RestoreManager) CommandException(org.glassfish.api.admin.CommandException)

Aggregations

BackupException (com.sun.enterprise.backup.BackupException)1 BackupWarningException (com.sun.enterprise.backup.BackupWarningException)1 RestoreManager (com.sun.enterprise.backup.RestoreManager)1 CommandException (org.glassfish.api.admin.CommandException)1