use of com.sun.enterprise.backup.BackupException in project Payara by payara.
the class BackupDomainCommand method executeCommand.
/**
*/
@Override
protected int executeCommand() throws CommandException {
try {
BackupManager mgr = new BackupManager(request);
logger.info(mgr.backup());
} catch (BackupWarningException bwe) {
logger.info(bwe.getMessage());
} catch (BackupException be) {
throw new CommandException(be);
}
return 0;
}
use of com.sun.enterprise.backup.BackupException in project Payara by payara.
the class ListBackupsCommand method executeCommand.
@Override
protected int executeCommand() throws CommandException {
try {
ListManager mgr = new ListManager(request);
logger.info(mgr.list());
} catch (BackupWarningException bwe) {
logger.info(bwe.getMessage());
} catch (BackupException be) {
throw new CommandException(be);
}
return 0;
}
use of com.sun.enterprise.backup.BackupException 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;
}
Aggregations