Search in sources :

Example 1 with BackupManager

use of com.sun.enterprise.backup.BackupManager 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;
}
Also used : BackupException(com.sun.enterprise.backup.BackupException) BackupWarningException(com.sun.enterprise.backup.BackupWarningException) CommandException(org.glassfish.api.admin.CommandException) BackupManager(com.sun.enterprise.backup.BackupManager)

Aggregations

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