Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- check(String) - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Checks whether the given class name can be instantiated with a zero-argument constructor.
- Context() - Constructor for class org.apache.commons.daemon.support.DaemonLoader.Context
-
Constructs a new instance.
- CONTROL - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The target name when associated with control actions ("control").
- CONTROL_RELOAD - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action name associated with the permission to call the
DaemonController.reload()method. - CONTROL_SHUTDOWN - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action name associated with the permission to call the
DaemonController.shutdown()method. - CONTROL_START - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action name associated with the permission to call the
DaemonController.start()method. - CONTROL_STOP - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action name associated with the permission to call the
DaemonController.stop()method.
D
- Daemon - Interface in org.apache.commons.daemon
-
Provides support for native daemon invocation.
- DaemonConfiguration - Class in org.apache.commons.daemon.support
-
Used by jsvc for Daemon configuration.
- DaemonConfiguration() - Constructor for class org.apache.commons.daemon.support.DaemonConfiguration
-
Default constructor
- DaemonContext - Interface in org.apache.commons.daemon
-
Defines a set of methods that a Daemon instance can use to communicate with the Daemon container.
- DaemonController - Interface in org.apache.commons.daemon
-
Defines methods needed by the DaemonLoader.
- DaemonInitException - Exception in org.apache.commons.daemon
-
Throw this during init if you can't initialize yourself for some expected reason.
- DaemonInitException(String) - Constructor for exception org.apache.commons.daemon.DaemonInitException
-
Constructs a new exception with the given message.
- DaemonInitException(String, Throwable) - Constructor for exception org.apache.commons.daemon.DaemonInitException
-
Constructs a new exception with the given detail and cause.
- DaemonListener - Interface in org.apache.commons.daemon
-
EvenListener type wrapper.
- DaemonLoader - Class in org.apache.commons.daemon.support
-
Used by jsvc for Daemon management.
- DaemonLoader() - Constructor for class org.apache.commons.daemon.support.DaemonLoader
-
Constructs a new instance.
- DaemonLoader.Context - Class in org.apache.commons.daemon.support
-
A concrete
DaemonContextthat acts as a simple value container. - DaemonLoader.Controller - Class in org.apache.commons.daemon.support
-
A DaemonController that acts on the the global
DaemonLoaderstate. - DaemonPermission - Class in org.apache.commons.daemon
-
Represents the permissions to control and query the status of a
Daemon. - DaemonPermission(String) - Constructor for class org.apache.commons.daemon.DaemonPermission
-
Creates a new
DaemonPermissioninstance with a specified permission name. - DaemonPermission(String, String) - Constructor for class org.apache.commons.daemon.DaemonPermission
-
Creates a new
DaemonPermissioninstance with a specified permission name and a specified list of actions. - DaemonUserSignal - Interface in org.apache.commons.daemon
-
Tags a Daemon as supporting some kind of signaling method that allows the Java application to perform a custom action.
- DaemonWrapper - Class in org.apache.commons.daemon.support
-
Implementation of the Daemon that allows running standard applications as daemons.
- DaemonWrapper() - Constructor for class org.apache.commons.daemon.support.DaemonWrapper
-
Constructs a new initialized instance.
- DEFAULT_CONFIG - Static variable in class org.apache.commons.daemon.support.DaemonConfiguration
-
Default configuration file name.
- destroy() - Method in interface org.apache.commons.daemon.Daemon
-
Frees any resources allocated by this daemon such as file descriptors or sockets.
- destroy() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
destroymethod. - destroy() - Method in class org.apache.commons.daemon.support.DaemonWrapper
E
- equals(Object) - Method in class org.apache.commons.daemon.DaemonPermission
-
Checks if a specified object equals
DaemonPermission.
F
- fail() - Method in interface org.apache.commons.daemon.DaemonController
-
Shuts down daemon and logs failed message.
- fail() - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
- fail(Exception) - Method in interface org.apache.commons.daemon.DaemonController
-
Shuts down daemon and logs failed message.
- fail(Exception) - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
- fail(String) - Method in interface org.apache.commons.daemon.DaemonController
-
Shuts down daemon and logs failed message.
- fail(String) - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
- fail(String, Exception) - Method in interface org.apache.commons.daemon.DaemonController
-
Shuts down daemon and logs failed message.
- fail(String, Exception) - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
G
- getActions() - Method in class org.apache.commons.daemon.DaemonPermission
-
Returns the list of actions permitted by this instance of
DaemonPermissionin its canonical form. - getArguments() - Method in interface org.apache.commons.daemon.DaemonContext
-
Gets an array of
Stringarguments supplied by the environment corresponding to the array of arguments given in thepublic static void main()method used as an entry point to most other Java programs. - getArguments() - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
- getController() - Method in interface org.apache.commons.daemon.DaemonContext
-
Gets a
DaemonControllerobject that can be used to control theDaemoninstance that thisDaemonContextis passed to. - getController() - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
- getMessageWithCause() - Method in exception org.apache.commons.daemon.DaemonInitException
-
Gets the message with the cause as a postfix.
- getProperty(String) - Method in class org.apache.commons.daemon.support.DaemonConfiguration
-
Gets the configuration property.
- getPropertyArray(String) - Method in class org.apache.commons.daemon.support.DaemonConfiguration
-
Gets the configuration property array.
H
- hashCode() - Method in class org.apache.commons.daemon.DaemonPermission
-
Returns the hash code for this
DaemonPermissioninstance.
I
- implies(Permission) - Method in class org.apache.commons.daemon.DaemonPermission
-
Checks if this
DaemonPermissionimplies anotherPermission. - init(DaemonContext) - Method in interface org.apache.commons.daemon.Daemon
-
Initializes this
Daemoninstance. - init(DaemonContext) - Method in class org.apache.commons.daemon.support.DaemonWrapper
-
Called from DaemonLoader on init stage.
L
- load(String) - Method in class org.apache.commons.daemon.support.DaemonConfiguration
-
Loads the configuration properties file.
- load(String, String[]) - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Loads the given class by name, initializing wrapper methods.
M
- MASK_CONTROL_RELOAD - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action mask associated with the permission to call the
DaemonController.reload()method. - MASK_CONTROL_SHUTDOWN - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action mask associated with the permission to call the
DaemonController.shutdown()method. - MASK_CONTROL_START - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action mask associated with the permission to call the
DaemonController.start()method. - MASK_CONTROL_STOP - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The action mask associated with the permission to call the
DaemonController.stop()method.
O
- org.apache.commons.daemon - package org.apache.commons.daemon
- org.apache.commons.daemon.support - package org.apache.commons.daemon.support
P
- PREFIX - Static variable in class org.apache.commons.daemon.support.DaemonConfiguration
-
Property prefix
R
- reload() - Method in interface org.apache.commons.daemon.DaemonController
-
Reloads daemon
- reload() - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
S
- setArguments(String[]) - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
-
Sets arguments.
- setController(DaemonController) - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
-
Sets the daemon controller.
- shutdown() - Method in interface org.apache.commons.daemon.DaemonController
-
Shuts down the daemon.
- shutdown() - Method in class org.apache.commons.daemon.support.DaemonLoader.Controller
- signal() - Method in interface org.apache.commons.daemon.DaemonUserSignal
-
Performs a custom action on received user signal.
- signal() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
signalmethod. - start() - Method in interface org.apache.commons.daemon.Daemon
-
Starts the operation of this
Daemoninstance. - start() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
startmethod. - start() - Method in class org.apache.commons.daemon.support.DaemonWrapper
- stop() - Method in interface org.apache.commons.daemon.Daemon
-
Stops the operation of this
Daemoninstance. - stop() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
stopmethod. - stop() - Method in class org.apache.commons.daemon.support.DaemonWrapper
T
- toString() - Method in class org.apache.commons.daemon.DaemonPermission
-
Returns a
Stringrepresentation of this instance. - TYPE_CONTROL - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The target type when associated with control actions.
V
- version() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Prints version information to
System.err.
W
- WILDCARD - Static variable in class org.apache.commons.daemon.DaemonPermission
-
The "wildcard" action implying all actions for the given target name.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form