use of org.codice.ddf.catalog.ui.query.monitor.api.WorkspaceQueryService in project ddf by codice.
the class QueryJob method execute.
@Override
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
LOGGER.trace("Calling execute");
LOCK.lock();
try {
SchedulerContext schedulerContext = jobExecutionContext.getScheduler().getContext();
WorkspaceQueryService workspaceQueryService = (WorkspaceQueryService) schedulerContext.get(WorkspaceQueryServiceImpl.JOB_IDENTITY);
workspaceQueryService.run();
} catch (SchedulerException e) {
LOGGER.warn("Could not get Scheduler Context. The job will not run", e);
} finally {
LOCK.unlock();
}
}
Aggregations