Package org.codelibs.fess.job
Class JobExecutor
java.lang.Object
org.codelibs.fess.job.JobExecutor
- Direct Known Subclasses:
ScriptExecutor
Abstract base class for job executors that handle script execution within the job system.
This class provides a framework for executing scripts and managing shutdown operations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for listening to shutdown events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JobExecutor.ShutdownListenerListener to handle shutdown events -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
shutdownListener
Listener to handle shutdown events
-
-
Constructor Details
-
JobExecutor
public JobExecutor()Default constructor.
-
-
Method Details
-
execute
Executes a script with the specified script type and content.- Parameters:
scriptType- the type of script to executescript- the script content to execute- Returns:
- the result of script execution
-
shutdown
public void shutdown()Initiates shutdown of the job executor. This method notifies the shutdown listener to perform cleanup operations. -
addShutdownListener
Adds a shutdown listener to be notified when the executor is shutting down.- Parameters:
listener- the shutdown listener to add
-