Search in sources :

Example 1 with ListManager

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

Aggregations

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