All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.bagofwords.jobs.JobsHttpStatus Maven / Gradle / Ivy

Go to download

Utility classes that are used in the count-db project and other bow-* projects

The newest version!
package be.bagofwords.jobs;

import be.bagofwords.application.ApplicationContext;
import be.bagofwords.web.BaseController;
import spark.Request;
import spark.Response;

/**
 * Created by Koen Deschacht ([email protected]) on 9/8/14.
 */
public class JobsHttpStatus extends BaseController {

    private JobRunner jobRunner;

    public JobsHttpStatus(ApplicationContext context) {
        super("/progress");
        jobRunner = context.getBean(JobRunner.class);
    }

    @Override
    protected Object handleRequest(Request request, Response response) throws Exception {
        return jobRunner.createHtmlStatus();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy