public class Daemon extends Object implements Daemon
jsvc.
 Example execution with jsvc:
 
jsvc -pidfile adaptor.pid -cp someadaptor-withlib.jar \
    com.google.enterprise.adaptor.Daemon package.SomeAdaptor
 Example registration with prunsrv, the procrun service
 application:
 
prunsrv install someadaptor --StartPath="%CD%" ^ --Classpath=someadaptor-withlib.jar ^ --StartMode=jvm --StartClass=com.google.enterprise.adaptor.Daemon ^ --StartMethod=serviceStart --StartParams=package.SomeAdaptor --StopMode=jvm --StopClass=com.google.enterprise.adaptor.Daemon ^ --StopMethod=serviceStop
Where someadaptor is a unique, arbitrary service name.
 
Typical setups will also want to provide extra arguments with procrun:
 
prunsrv ... ^ --StdOutput=stdout.log --StdError=stderr.log ^ ++JvmOptions=-Djava.util.logging.config.file=logging.properties
| Constructor and Description | 
|---|
Daemon()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()  | 
void | 
init(DaemonContext context)  | 
static void | 
serviceStart(String[] args)  | 
static void | 
serviceStop(String[] args)  | 
void | 
start()  | 
void | 
stop()  | 
public void init(DaemonContext context) throws Exception
public void start()
           throws Exception