public interface DaemonContribution
Defines an API definition that gives control of a daemon that belongs to a URCap.
Modifier and Type | Interface and Description |
---|---|
static class |
DaemonContribution.State
RUNNING - The daemon is running
STOPPED - The daemon is stopped
ERROR - The daemon should be running but it is not
|
Modifier and Type | Method and Description |
---|---|
DaemonContribution.State |
getState() |
void |
installResource(URL url)
The method installResource method installs the resource folder/file
specified by an url.
|
void |
start()
Start the daemon.
|
void |
stop()
Stop the daemon.
|
void installResource(URL url)
The method installResource method installs the resource folder/file specified by an url.
url
- - Path as a URL to the resource folder/file containing the daemon/daemon folder structurevoid start()
Start the daemon. Will be ignored if daemon is in ERROR state. When issuing multiple start and/or stop commands within a short time frame only the latest will be effectuated. If called when the daemon is in the INITIALIZING state it will be invoked when the daemon is ready (unless it enters the ERROR state).
void stop()
Stop the daemon. Will be ignored if daemon is in ERROR state. When issuing multiple start and/or stop commands within a short time frame only the latest will be effectuated. If called when the daemon is in the INITIALIZING state it will be invoked when the daemon is ready (unless it enters the ERROR state).
DaemonContribution.State getState()
Copyright © 2018. All rights reserved.