agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/quartz/util/QuartzUtility.java
/**
     * provides all scheduled jobs/triggers and scheduler data.
     *
     * @return all scheduled jobs/triggers and scheduler data represented as JSON.
     */
provides all scheduled jobs/triggers and scheduler data.
@return all scheduled jobs/triggers and scheduler data represented as JSON.
provides all scheduled jobs / triggers and scheduler data . @return all scheduled jobs / triggers and scheduler data represented as JSON .
public String schedulerDetails() {
        if (isAuthorized()) {
            try {
                return toJSON(new HashMap<String, Object>() {{
                    put("jobs", listJobs());
                    put("details", new HashMap<String, Object>() {{
                        put("version", scheduler().getMetaData().getVersion());
                        put("jobsExecuted", scheduler().getMetaData().getNumberOfJobsExecuted());
                        put("runningSince", scheduler().getMetaData().getRunningSince().toString());
                        put("summary", scheduler().getMetaData().getSummary().replaceAll("\n", "<br/>"));
                        put("pausedTriggers", scheduler().getPausedTriggerGroups());
                        put("pausedJobs", pausedJobs);
                    }});
                }});
            } catch (Throwable e) {
                log.error("failed to get quartz details : " + e.getMessage(),e);
                return toJSON(
                        new QuartzConfigResetResponse("render detaisl failed " + e,
                                QuartzConfigResetResponse.Type.ERROR)
                );
            }
        }
        throw new AuthorizationException();
    }
public String schedulerDetails ( ) { if ( isAuthorized ( ) ) { try { return toJSON ( new HashMap < String , Object > ( ) { { put ( "jobs" , listJobs ( ) ) ; put ( "details" , new HashMap < String , Object > ( ) { { put ( "version" , scheduler ( ) . getMetaData ( ) . getVersion ( ) ) ; put ( "jobsExecuted" , scheduler ( ) . getMetaData ( ) . getNumberOfJobsExecuted ( ) ) ; put ( "runningSince" , scheduler ( ) . getMetaData ( ) . getRunningSince ( ) . toString ( ) ) ; put ( "summary" , scheduler ( ) . getMetaData ( ) . getSummary ( ) . replaceAll ( "\n" , "<br/>" ) ) ; put ( "pausedTriggers" , scheduler ( ) . getPausedTriggerGroups ( ) ) ; put ( "pausedJobs" , pausedJobs ) ; } } ) ; } } ) ; } catch ( Throwable e ) { log . error ( "failed to get quartz details : " + e . getMessage ( ) , e ) ; return toJSON ( new QuartzConfigResetResponse ( "render detaisl failed " + e , QuartzConfigResetResponse . Type . ERROR ) ) ; } } throw new AuthorizationException ( ) ; }
provides all scheduled jobs/triggers and scheduler data.
provides all scheduled jobs / triggers and scheduler data .