Tabnine Logo
SimpleAntaresClient.registerJob
Code IndexAdd Tabnine to your IDE (free)

How to use
registerJob
method
in
me.hao0.antares.client.core.SimpleAntaresClient

Best Java code snippets using me.hao0.antares.client.core.SimpleAntaresClient.registerJob (Showing top 2 results out of 315)

origin: ihaolin/antares

private void registerJobs() {
  // register default jobs
  Map<String, DefaultJob> defaultJobs = springContext.getBeansOfType(DefaultJob.class);
  if (!CollectionUtil.isNullOrEmpty(defaultJobs)){
    for (DefaultJob defaultJob : defaultJobs.values()){
      client.registerJob(defaultJob);
    }
  }
  // register script jobs
  Map<String, ScriptJob> scriptJobs = springContext.getBeansOfType(ScriptJob.class);
  if (!CollectionUtil.isNullOrEmpty(scriptJobs)){
    for (ScriptJob scriptJob : scriptJobs.values()){
      client.registerJob(scriptJob);
    }
  }
}
origin: ihaolin/antares

  private void registerJobs(final SimpleAntaresClient client) {

    // register default jobs
    Map<String, DefaultJob> defaultJobs = springContext.getBeansOfType(DefaultJob.class);
    if (!CollectionUtil.isNullOrEmpty(defaultJobs)){
      for (DefaultJob defaultJob : defaultJobs.values()){
        client.registerJob(defaultJob);
      }
    }

    // register script jobs
    Map<String, ScriptJob> scriptJobs = springContext.getBeansOfType(ScriptJob.class);
    if (!CollectionUtil.isNullOrEmpty(scriptJobs)){
      for (ScriptJob scriptJob : scriptJobs.values()){
        client.registerJob(scriptJob);
      }
    }
  }
}
me.hao0.antares.client.coreSimpleAntaresClientregisterJob

Popular methods of SimpleAntaresClient

  • <init>
  • setExecutorThreadCount
  • start
  • shutdown

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer 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