agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/quartz/util/QuartzUtility.java
/**
     * if authorized, resumes all jobs.
     *
     * @return json response
     */
if authorized, resumes all jobs.
@return json response
if authorized resumes all jobs . @return json response
public synchronized String resumeAll() {
        if (isAuthorized()) {
            try {
                scheduler().resumeAll();
                pausedJobs.clear();
                pausedTriggers.clear();
                allPaused = false;
            } catch (SchedulerException e) {
                log.error("unable to resume all jobs. failed with :" + e.getMessage(), e);
                toJSON(new QuartzConfigResetResponse(
                        e.getMessage(),
                        QuartzConfigResetResponse.Type.ERROR
                ));
            }
            return toJSON(
                    new QuartzConfigResetResponse("all jobs resumed", QuartzConfigResetResponse.Type.SUCCESS)
            );
        }
        throw new AuthorizationException();
    }
public synchronized String resumeAll ( ) { if ( isAuthorized ( ) ) { try { scheduler ( ) . resumeAll ( ) ; pausedJobs . clear ( ) ; pausedTriggers . clear ( ) ; allPaused = false ; } catch ( SchedulerException e ) { log . error ( "unable to resume all jobs. failed with :" + e . getMessage ( ) , e ) ; toJSON ( new QuartzConfigResetResponse ( e . getMessage ( ) , QuartzConfigResetResponse . Type . ERROR ) ) ; } return toJSON ( new QuartzConfigResetResponse ( "all jobs resumed" , QuartzConfigResetResponse . Type . SUCCESS ) ) ; } throw new AuthorizationException ( ) ; }
if authorized, resumes all jobs.
if authorized resumes all jobs .