Codota Logo
QuartzServer
Code IndexAdd Codota to your IDE (free)

How to use
QuartzServer
in
org.quartz.impl

Best Java code snippets using org.quartz.impl.QuartzServer (Showing top 4 results out of 315)

  • Common ways to obtain QuartzServer
private void myMethod () {
QuartzServer q =
  • Codota Iconnew QuartzServer()
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

public static void main(String[] args) throws Exception {
  //    //Configure Log4J
  //    org.apache.log4j.PropertyConfigurator.configure(
  //      System.getProperty("log4jConfigFile", "log4j.properties"));
  if (System.getSecurityManager() == null) {
    System.setSecurityManager(new java.rmi.RMISecurityManager());
  }
  try {
    QuartzServer server = new QuartzServer();
    if (args.length == 0) {
      server.serve(
        new org.quartz.impl.StdSchedulerFactory(), false);
    } else if (args.length == 1 && args[0].equalsIgnoreCase("console")) {
      server.serve(new org.quartz.impl.StdSchedulerFactory(), true);
    } else {
      System.err.println("\nUsage: QuartzServer [console]");
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}
origin: quartz-scheduler/quartz

public static void main(String[] args) throws Exception {
  //    //Configure Log4J
  //    org.apache.log4j.PropertyConfigurator.configure(
  //      System.getProperty("log4jConfigFile", "log4j.properties"));
  if (System.getSecurityManager() == null) {
    System.setSecurityManager(new java.rmi.RMISecurityManager());
  }
  try {
    QuartzServer server = new QuartzServer();
    if (args.length == 0) {
      server.serve(
        new org.quartz.impl.StdSchedulerFactory(), false);
    } else if (args.length == 1 && args[0].equalsIgnoreCase("console")) {
      server.serve(new org.quartz.impl.StdSchedulerFactory(), true);
    } else {
      System.err.println("\nUsage: QuartzServer [console]");
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

public static void main(String[] args) throws Exception {
  //    //Configure Log4J
  //    org.apache.log4j.PropertyConfigurator.configure(
  //      System.getProperty("log4jConfigFile", "log4j.properties"));
  if (System.getSecurityManager() == null) {
    System.setSecurityManager(new java.rmi.RMISecurityManager());
  }
  try {
    QuartzServer server = new QuartzServer();
    if (args.length == 0) {
      server.serve(
        new org.quartz.impl.StdSchedulerFactory(), false);
    } else if (args.length == 1 && args[0].equalsIgnoreCase("console")) {
      server.serve(new org.quartz.impl.StdSchedulerFactory(), true);
    } else {
      System.err.println("\nUsage: QuartzServer [console]");
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}
origin: quartz/quartz-all

public static void main(String[] args) throws Exception {
  //    //Configure Log4J
  //    org.apache.log4j.PropertyConfigurator.configure(
  //      System.getProperty("log4jConfigFile", "log4j.properties"));
  if (System.getSecurityManager() == null) {
    System.setSecurityManager(new java.rmi.RMISecurityManager());
  }
  try {
    QuartzServer server = new QuartzServer();
    if (args.length == 0) {
      server.serve(
        new org.quartz.impl.StdSchedulerFactory(), false);
    } else if (args.length == 1 && args[0].equalsIgnoreCase("console")) {
      server.serve(new org.quartz.impl.StdSchedulerFactory(), true);
    } else {
      System.err.println("\nUsage: QuartzServer [console]");
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}
org.quartz.implQuartzServer

Javadoc

Instantiates an instance of Quartz Scheduler as a stand-alone program, if the scheduler is configured for RMI it will be made available.

The main() method of this class currently accepts 0 or 1 arguemtns, if there is an argument, and its value is "console", then the program will print a short message on the console (std-out) and wait for the user to type "exit" - at which time the scheduler will be shutdown.

Future versions of this server should allow additional configuration for responding to scheduler events by allowing the user to specify org.quartz.JobListener, org.quartz.TriggerListener and org.quartz.SchedulerListener classes.

Please read the Quartz FAQ entries about RMI before asking questions in the forums or mail-lists.

Most used methods

  • <init>
  • serve

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now