Class Main

java.lang.Object
xal.service.worker.Main

public class Main extends Object
Main
Author:
tap
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final boolean
    indicates whether verbose printing is enabled
    protected static final Date
    The time at which the application was launched
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Date
    Get the time when this application was launched.
    static void
    main(String[] args)
    Main entry point to the service.
    protected void
    run()
    run the service
    static void
    shutdown(int code)
    Shutdown the application

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LAUNCH_TIME

      protected static final Date LAUNCH_TIME
      The time at which the application was launched
    • IS_VERBOSE

      protected static final boolean IS_VERBOSE
      indicates whether verbose printing is enabled
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • run

      protected void run()
      run the service
    • main

      public static void main(String[] args)
      Main entry point to the service. Run the service.
      Parameters:
      args - The launch arguments to the service.
    • getLaunchTime

      public static Date getLaunchTime()
      Get the time when this application was launched.
      Returns:
      the time when this application was launched
    • shutdown

      public static void shutdown(int code)
      Shutdown the application