org.silverpeas.file
Class ResizedImageCacheCleaner

java.lang.Object
  extended by com.silverpeas.scheduler.Job
      extended by org.silverpeas.file.ResizedImageCacheCleaner

@Named
public class ResizedImageCacheCleaner
extends Job

A scheduled job to clean up all the resized images for non existent original images.

Author:
mmoquillon

Constructor Summary
ResizedImageCacheCleaner()
          Creates a new job
 
Method Summary
 void execute(JobExecutionContext context)
          Executes the job with the specified execution context.
 void scheduleFrequently()
           
 
Methods inherited from class com.silverpeas.scheduler.Job
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizedImageCacheCleaner

public ResizedImageCacheCleaner()
Creates a new job

Method Detail

scheduleFrequently

@PostConstruct
public void scheduleFrequently()
                        throws SchedulerException,
                               ParseException
Throws:
SchedulerException
ParseException

execute

public void execute(JobExecutionContext context)
             throws Exception
Description copied from class: Job
Executes the job with the specified execution context. The context carries the information that can be required by the job to fulfill its execution, like the job parameters.

Specified by:
execute in class Job
Parameters:
context - the context under which this job is executed.
Throws:
Exception - if an error occurs during the job execution.


Copyright © 2016 Silverpeas. All Rights Reserved.