agave-common/common-api/src/main/java/org/iplantc/service/common/quartz/util/QuartzUtility.java
/**
     * if authorized, resumes trigger identified by {@code triggerName} and {@code triggerGroup}.
     *
     * @param triggerName  trigger name.
     * @param triggerGroup trigger group.
     * @param session      session to authorize.
     * @return
     */
if authorized, resumes trigger identified by  triggerName and  triggerGroup.
@param triggerName  trigger name.
@param triggerGroup trigger group.
@param session      session to authorize.
@return
if authorized resumes trigger identified by triggerName and triggerGroup . @param triggerName trigger name . @param triggerGroup trigger group . @param session session to authorize . @return
public synchronized String resumeTrigger(String triggerName, String triggerGroup) {
        if (isAuthorized()) {
            try {
                scheduler().resumeTrigger(new TriggerKey(triggerName, triggerGroup));
                pausedTriggers.remove(triggerName);
            } catch (SchedulerException e) {
                log.error("unable to resume " + triggerName + "(" + triggerGroup
                        + "). failed with :" + e.getMessage(), e);
                toJSON(new QuartzConfigResetResponse(
                        e.getMessage(),
                        QuartzConfigResetResponse.Type.ERROR
                ));
            }
            return toJSON(
                    new QuartzConfigResetResponse(
                            triggerName + "(" + triggerGroup + ") trigger(group) resumed.",
                            QuartzConfigResetResponse.Type.SUCCESS
                    )
            );
        }
        throw new AuthorizationException();
    }
public synchronized String resumeTrigger ( String triggerName , String triggerGroup ) { if ( isAuthorized ( ) ) { try { scheduler ( ) . resumeTrigger ( new TriggerKey ( triggerName , triggerGroup ) ) ; pausedTriggers . remove ( triggerName ) ; } catch ( SchedulerException e ) { log . error ( "unable to resume " + triggerName + "(" + triggerGroup + "). failed with :" + e . getMessage ( ) , e ) ; toJSON ( new QuartzConfigResetResponse ( e . getMessage ( ) , QuartzConfigResetResponse . Type . ERROR ) ) ; } return toJSON ( new QuartzConfigResetResponse ( triggerName + "(" + triggerGroup + ") trigger(group) resumed." , QuartzConfigResetResponse . Type . SUCCESS ) ) ; } throw new AuthorizationException ( ) ; }
if authorized, resumes trigger identified by {@code triggerName} and {@code triggerGroup}.
if authorized resumes trigger identified by { @code triggerName } and { @code triggerGroup } .