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
- 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 Class in org.apache.commons.daemon
-
Throw this during init if you can't initialize yourself for some expected reason.
- DaemonInitException(String) - Constructor for exception class org.apache.commons.daemon.DaemonInitException
-
Constructs a new exception with the given message.
- DaemonInitException(String, Throwable) - Constructor for exception class 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
- DaemonLoader.Context - Class in org.apache.commons.daemon.support
-
A concrete
DaemonContext
that acts as a simple value container. - DaemonLoader.Controller - Class in org.apache.commons.daemon.support
-
A DaemonController that acts on the the global
DaemonLoader
state. - 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
DaemonPermission
instance with a specified permission name. - DaemonPermission(String, String) - Constructor for class org.apache.commons.daemon.DaemonPermission
-
Creates a new
DaemonPermission
instance 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 signalling 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
destroy
method. - 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
DaemonPermission
in its canonical form. - getArguments() - Method in interface org.apache.commons.daemon.DaemonContext
- getArguments() - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
- getController() - Method in interface org.apache.commons.daemon.DaemonContext
- getController() - Method in class org.apache.commons.daemon.support.DaemonLoader.Context
- getMessageWithCause() - Method in exception class 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
DaemonPermission
instance.
I
- implies(Permission) - Method in class org.apache.commons.daemon.DaemonPermission
-
Checks if this
DaemonPermission
implies anotherPermission
. - init(DaemonContext) - Method in interface org.apache.commons.daemon.Daemon
-
Initializes this
Daemon
instance. - 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
signal
method. - start() - Method in interface org.apache.commons.daemon.Daemon
-
Starts the operation of this
Daemon
instance. - start() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
start
method. - start() - Method in class org.apache.commons.daemon.support.DaemonWrapper
- stop() - Method in interface org.apache.commons.daemon.Daemon
-
Stops the operation of this
Daemon
instance. - stop() - Static method in class org.apache.commons.daemon.support.DaemonLoader
-
Invokes the wrapped
stop
method. - stop() - Method in class org.apache.commons.daemon.support.DaemonWrapper
T
- toString() - Method in class org.apache.commons.daemon.DaemonPermission
-
Returns a
String
representation 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