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

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

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

origin: xuxueli/xxl-job

@Override
public void start() throws Exception {
  // init JobHandler Repository
  initJobHandlerRepository(applicationContext);
  // refresh GlueFactory
  GlueFactory.refreshInstance(1);
  // super start
  super.start();
}
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);
  }
}
origin: com.xuxueli/xxl-job-core

@Override
public void start() throws Exception {
  // init JobHandler Repository
  initJobHandlerRepository(applicationContext);
  // refresh GlueFactory
  GlueFactory.refreshInstance(1);
  // super start
  super.start();
}
com.xxl.job.core.executorXxlJobExecutorstart

Popular methods of XxlJobExecutor

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

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • String (java.lang)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JTextField (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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