Class PreRenderingJob

java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
org.n52.io.task.ScheduledJob
org.n52.io.task.PreRenderingJob
All Implemented Interfaces:
org.quartz.InterruptableJob, org.quartz.Job, org.springframework.beans.factory.Aware, org.springframework.web.context.ServletConfigAware

@PersistJobDataAfterExecution @DisallowConcurrentExecution public class PreRenderingJob extends ScheduledJob implements org.quartz.InterruptableJob, org.springframework.web.context.ServletConfigAware
  • Constructor Details

    • PreRenderingJob

      public PreRenderingJob()
  • Method Details

    • createJobDetails

      public org.quartz.JobDetail createJobDetails()
      Specified by:
      createJobDetails in class ScheduledJob
    • executeInternal

      protected void executeInternal(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      executeInternal in class org.springframework.scheduling.quartz.QuartzJobBean
      Throws:
      org.quartz.JobExecutionException
    • interrupt

      public void interrupt() throws org.quartz.UnableToInterruptJobException
      Specified by:
      interrupt in interface org.quartz.InterruptableJob
      Throws:
      org.quartz.UnableToInterruptJobException
    • setServletConfig

      public void setServletConfig(jakarta.servlet.ServletConfig servletConfig)
      Specified by:
      setServletConfig in interface org.springframework.web.context.ServletConfigAware
    • setEnabled

      @Setting("helgoland.job.prerendering.enable") public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class ScheduledJob
    • setConfigFile

      @Setting("helgoland.job.prerendering.config.file") public void setConfigFile(String configFile)
    • setTriggerAtStartup

      @Setting("helgoland.job.prerendering.trigger.startup") public void setTriggerAtStartup(boolean triggerAtStartup)
      Overrides:
      setTriggerAtStartup in class ScheduledJob
    • setCronExpression

      @Setting("helgoland.job.prerendering.cron.expression") public void setCronExpression(String cronExpresssion)
      Overrides:
      setCronExpression in class ScheduledJob
    • getPrerenderedImages

      public List<String> getPrerenderedImages(String datasetId)
    • hasPrerenderedImage

      public boolean hasPrerenderedImage(String fileName)
    • hasPrerenderedImage

      public boolean hasPrerenderedImage(String datasetId, String chartQualifier)
    • writePrerenderedGraphToOutputStream

      public void writePrerenderedGraphToOutputStream(String filename, OutputStream outputStream)
    • writePrerenderedGraphToOutputStream

      public void writePrerenderedGraphToOutputStream(String datasetId, String qualifier, OutputStream outputStream)
    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class ScheduledJob
    • getConfigFile

      public String getConfigFile()
    • isTriggerAtStartup

      public boolean isTriggerAtStartup()
      Overrides:
      isTriggerAtStartup in class ScheduledJob
    • getCronExpression

      public String getCronExpression()
      Overrides:
      getCronExpression in class ScheduledJob
    • isModified

      public boolean isModified()
      Overrides:
      isModified in class ScheduledJob