Service
interface provides a simple abstraction for a Java Application running as a service (in UNIX words, a daemon). This interface can be considered as an extension of the common invocation mechanism used in Java of the main(String argv[])
method, and provides some extensions to it, allowing to perform certain operations that before were not possible to obtain, and commonly used in native services and daemons (such as user-id switching, signal and event handling and so on).
This interface and related classes are not intended to be used in other environment rather than low-level control of the VM environment and its lifecycle (JMX, and JSR-111 will provide those APIs), and must always be accompanied with a binary or wrapper that will be used instead of the usual java(.exe) invocator.
@author Pier Fumagalli, Sun Microsystems INC. @author Copyright © The Apache Software Foundation.
|
|