Tabnine Logo
XxlJobExecutor.setLogRetentionDays
Code IndexAdd Tabnine to your IDE (free)

How to use
setLogRetentionDays
method
in
com.xxl.job.core.executor.XxlJobExecutor

Best Java code snippets using com.xxl.job.core.executor.XxlJobExecutor.setLogRetentionDays (Showing top 1 results out of 315)

origin: xuxueli/xxl-job

/**
 * init
 */
public void initXxlJobExecutor() {
  // registry jobhandler
  XxlJobExecutor.registJobHandler("demoJobHandler", new DemoJobHandler());
  XxlJobExecutor.registJobHandler("shardingJobHandler", new ShardingJobHandler());
  XxlJobExecutor.registJobHandler("httpJobHandler", new HttpJobHandler());
  XxlJobExecutor.registJobHandler("commandJobHandler", new CommandJobHandler());
  // load executor prop
  Properties xxlJobProp = loadProperties("xxl-job-executor.properties");
  // init executor
  xxlJobExecutor = new XxlJobExecutor();
  xxlJobExecutor.setAdminAddresses(xxlJobProp.getProperty("xxl.job.admin.addresses"));
  xxlJobExecutor.setAppName(xxlJobProp.getProperty("xxl.job.executor.appname"));
  xxlJobExecutor.setIp(xxlJobProp.getProperty("xxl.job.executor.ip"));
  xxlJobExecutor.setPort(Integer.valueOf(xxlJobProp.getProperty("xxl.job.executor.port")));
  xxlJobExecutor.setAccessToken(xxlJobProp.getProperty("xxl.job.accessToken"));
  xxlJobExecutor.setLogPath(xxlJobProp.getProperty("xxl.job.executor.logpath"));
  xxlJobExecutor.setLogRetentionDays(Integer.valueOf(xxlJobProp.getProperty("xxl.job.executor.logretentiondays")));
  // start executor
  try {
    xxlJobExecutor.start();
  } catch (Exception e) {
    logger.error(e.getMessage(), e);
  }
}
com.xxl.job.core.executorXxlJobExecutorsetLogRetentionDays

Popular methods of XxlJobExecutor

  • <init>
  • registJobHandler
  • setAccessToken
  • setAdminAddresses
  • setAppName
  • setIp
  • setLogPath
  • setPort
  • start
  • destroy
  • getAdminBizList
  • initAdminBizList
  • getAdminBizList,
  • initAdminBizList,
  • initRpcProvider,
  • loadJobHandler,
  • loadJobThread,
  • registJobThread,
  • removeJobThread,
  • stopRpcProvider

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now