Class DaemonLoader
- java.lang.Object
-
- org.apache.commons.daemon.support.DaemonLoader
-
public final class DaemonLoader extends java.lang.ObjectUsed by jsvc for Daemon management.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDaemonLoader.Contextstatic classDaemonLoader.Controller
-
Field Summary
Fields Modifier and Type Field Description private static DaemonLoader.Controllercontrollerprivate static java.lang.Objectdaemonprivate static java.lang.reflect.Methoddestroyprivate static java.lang.reflect.Methodinitprivate static java.lang.reflect.Methodsignalprivate static java.lang.reflect.Methodstartprivate static java.lang.reflect.Methodstop
-
Constructor Summary
Constructors Constructor Description DaemonLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheck(java.lang.String cn)static booleandestroy()private static voidfailed(java.lang.String message)static booleanload(java.lang.String className, java.lang.String[] args)private static voidshutdown(boolean reload)static booleansignal()static booleanstart()static booleanstop()static voidversion()
-
-
-
Field Detail
-
controller
private static DaemonLoader.Controller controller
-
daemon
private static java.lang.Object daemon
-
init
private static java.lang.reflect.Method init
-
start
private static java.lang.reflect.Method start
-
stop
private static java.lang.reflect.Method stop
-
destroy
private static java.lang.reflect.Method destroy
-
signal
private static java.lang.reflect.Method signal
-
-
Method Detail
-
version
public static void version()
-
check
public static boolean check(java.lang.String cn)
-
signal
public static boolean signal()
-
load
public static boolean load(java.lang.String className, java.lang.String[] args)
-
start
public static boolean start()
-
stop
public static boolean stop()
-
destroy
public static boolean destroy()
-
shutdown
private static void shutdown(boolean reload)
-
failed
private static void failed(java.lang.String message)
-
-