congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XxlJobExecutor.setAdminAddresses
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.xxl.job.core.executor.XxlJobExecutor.setAdminAddresses (Showing top 2 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);
  }
}
origin: nutzam/nutzboot

@IocBean(create = "start", depose = "destroy")
public XxlJobExecutor xxlJobExecutor() {
  log.info(">>>>>>>>>>> xxl-job config init.");
  XxlJobExecutor xxlJobExecutor = new XxlJobExecutor();
  // 声明在application.properties
  xxlJobExecutor.setIp(conf.get(PROP_EXECTOR_IP, "0.0.0.0"));
  xxlJobExecutor.setPort(conf.getInt(PROP_EXECTOR_PORT, 8081));
  xxlJobExecutor.setAppName(conf.get(PROP_EXECTOR_NAME, conf.get("nutz.application.name", "xxl-job-executor")));
  xxlJobExecutor.setAdminAddresses(conf.get(PROP_ADMIN_ADDRESSES, "http://127.0.0.1:8080/xxl-job-admin"));
  xxlJobExecutor.setLogPath(conf.get(PROP_EXECTOR_LOGPATH, "/var/log/xxl-job/jobhandler/"));
  xxlJobExecutor.setAccessToken(conf.get(PROP_ACCESSTOKEN, ""));
  return xxlJobExecutor;
}
com.xxl.job.core.executorXxlJobExecutorsetAdminAddresses

Popular methods of XxlJobExecutor

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

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best plugins for Eclipse
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