Class JobResourceHandlerService

java.lang.Object
org.graylog.scheduler.rest.JobResourceHandlerService

public class JobResourceHandlerService extends Object
JobResourceHandlers provide a pluggable way to list and cancel Jobs that run within the new JobScheduler. The main reason why this is currently not a generic solution, is that each Job implementation needs to perform their own permission checks. That's why every call contains the current UserContext. Another responsibility is converting JobTriggerDto to SystemJobSummary objects, to cater the existing system job endpoints. We might change this in the future, once we have a better idea on how to build a more generic job API.