Package org.codelibs.fess.job
Class GenerateThumbnailJob
java.lang.Object
org.codelibs.fess.job.ExecJob
org.codelibs.fess.job.GenerateThumbnailJob
Job class for generating thumbnails for documents in the search engine.
This job executes the ThumbnailGenerator process as a separate JVM process
to create thumbnail images for supported document types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag indicating whether to perform cleanup operations.protected intNumber of threads to use for thumbnail generation.Fields inherited from class org.codelibs.fess.job.ExecJob
jobExecutor, jvmOptions, lastaEnv, logFilePath, logLevel, logSuffix, processTimeout, sessionId, timeout, useLocalFesen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncleanup()Enables cleanup operations for this job.execute()Executes the job and returns the result as a string.protected voidExecutes the thumbnail generator process.protected StringReturns the execution type identifier for this job.numOfThreads(int numOfThreads) Sets the number of threads to use for thumbnail generation.Methods inherited from class org.codelibs.fess.job.ExecJob
addFessConfigProperties, addFessCustomSystemProperties, addFessSystemProperties, addSystemProperty, appendJarFile, createSystemProperties, createTimeoutTask, deleteTempDir, execute, gcLogging, getLogName, jobExecutor, jvmOptions, lastaEnv, logFilePath, logLevel, logSuffix, remoteDebug, sessionId, timeout, useLocalFesen
-
Field Details
-
numOfThreads
protected int numOfThreadsNumber of threads to use for thumbnail generation. -
cleanup
protected boolean cleanupFlag indicating whether to perform cleanup operations.
-
-
Constructor Details
-
GenerateThumbnailJob
public GenerateThumbnailJob()Default constructor for the GenerateThumbnailJob.
-
-
Method Details
-
numOfThreads
Sets the number of threads to use for thumbnail generation.- Parameters:
numOfThreads- the number of threads- Returns:
- this job instance for method chaining
-
cleanup
Enables cleanup operations for this job.- Returns:
- this job instance for method chaining
-
execute
Description copied from class:ExecJobExecutes the job and returns the result as a string. This method contains the main business logic for the specific job implementation. -
executeThumbnailGenerator
protected void executeThumbnailGenerator()Executes the thumbnail generator process. Sets up the classpath, JVM options, and command line arguments to launch the ThumbnailGenerator in a separate process.- Throws:
JobProcessingException- if the thumbnail generation process fails
-
getExecuteType
Description copied from class:ExecJobReturns the execution type identifier for this job. This type is used for classpath construction, configuration, and logging purposes.- Specified by:
getExecuteTypein classExecJob- Returns:
- the execution type (e.g., "crawler", "suggest", etc.)
-