Class DaemonLoader

java.lang.Object
org.apache.commons.daemon.support.DaemonLoader

public final class DaemonLoader extends Object
Used by jsvc for Daemon management.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A concrete DaemonContext that acts as a simple value container.
    static class 
    A DaemonController that acts on the the global DaemonLoader state.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static boolean
    check(String className)
    Checks whether the given class name can be instantiated with a zero-argument constructor.
    static boolean
    Invokes the wrapped destroy method.
    static boolean
    load(String className, String[] args)
    Loads the given class by name, initializing wrapper methods.
    static boolean
    Invokes the wrapped signal method.
    static boolean
    Invokes the wrapped start method.
    static boolean
    Invokes the wrapped stop method.
    static void
    Prints version information to System.err.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

  • Method Details Link icon

    • version Link icon

      public static void version()
      Prints version information to System.err.
    • check Link icon

      public static boolean check(String className)
      Checks whether the given class name can be instantiated with a zero-argument constructor.
      Parameters:
      className - The class name.
      Returns:
      true if the given class name can be instantiated, false otherwise.
    • signal Link icon

      public static boolean signal()
      Invokes the wrapped signal method.
      Returns:
      whether the call succeeded.
    • load Link icon

      public static boolean load(String className, String[] args)
      Loads the given class by name, initializing wrapper methods.
      Parameters:
      className - The class name to load.
      args - arguments for the context.
      Returns:
      whether the operation succeeded.
    • start Link icon

      public static boolean start()
      Invokes the wrapped start method.
      Returns:
      whether the call succeeded.
    • stop Link icon

      public static boolean stop()
      Invokes the wrapped stop method.
      Returns:
      whether the call succeeded.
    • destroy Link icon

      public static boolean destroy()
      Invokes the wrapped destroy method.
      Returns:
      whether the call succeeded.