Package org.codelibs.fess.job
Class ExecJob
- java.lang.Object
-
- org.codelibs.fess.job.ExecJob
-
- Direct Known Subclasses:
CrawlJob,GenerateThumbnailJob,SuggestJob
public abstract class ExecJob extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected JobExecutorjobExecutorprotected List<String>jvmOptionsprotected StringlastaEnvprotected StringlogFilePathprotected StringlogLevelprotected booleanprocessTimeoutprotected StringsessionIdprotected inttimeoutprotected booleanuseLocalElasticsearch
-
Constructor Summary
Constructors Constructor Description ExecJob()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddSystemProperty(List<String> cmdList, String name, String defaultValue, String appendValue)protected voidappendJarFile(String cpSeparator, StringBuilder buf, File libDir, String basePath)protected org.codelibs.core.timer.TimeoutTaskcreateTimeoutTask()protected voiddeleteTempDir(File ownTmpDir)abstract Stringexecute()ExecJobgcLogging()protected abstract StringgetExecuteType()ExecJobjobExecutor(JobExecutor jobExecutor)ExecJobjvmOptions(String... options)ExecJoblastaEnv(String env)ExecJoblogFilePath(String logFilePath)ExecJoblogLevel(String logLevel)ExecJobremoteDebug()ExecJobsessionId(String sessionId)ExecJobtimeout(int timeout)ExecJobuseLocalElasticsearch(boolean useLocalElasticsearch)
-
-
-
Field Detail
-
jobExecutor
protected JobExecutor jobExecutor
-
sessionId
protected String sessionId
-
useLocalElasticsearch
protected boolean useLocalElasticsearch
-
logFilePath
protected String logFilePath
-
logLevel
protected String logLevel
-
lastaEnv
protected String lastaEnv
-
timeout
protected int timeout
-
processTimeout
protected boolean processTimeout
-
-
Method Detail
-
execute
public abstract String execute()
-
getExecuteType
protected abstract String getExecuteType()
-
jobExecutor
public ExecJob jobExecutor(JobExecutor jobExecutor)
-
timeout
public ExecJob timeout(int timeout)
-
useLocalElasticsearch
public ExecJob useLocalElasticsearch(boolean useLocalElasticsearch)
-
remoteDebug
public ExecJob remoteDebug()
-
gcLogging
public ExecJob gcLogging()
-
addSystemProperty
protected void addSystemProperty(List<String> cmdList, String name, String defaultValue, String appendValue)
-
deleteTempDir
protected void deleteTempDir(File ownTmpDir)
-
appendJarFile
protected void appendJarFile(String cpSeparator, StringBuilder buf, File libDir, String basePath)
-
createTimeoutTask
protected org.codelibs.core.timer.TimeoutTask createTimeoutTask()
-
-