public class Service extends Application
setup| Constructor and Description |
|---|
Service(SetupBuilder setup)
Create a new Service
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the serviceID which should be a short version of the application name
|
java.lang.String |
getWrapper()
Name of the daemon wrapper, or the program that should be run as daemon
|
boolean |
isKeepAlive()
Return true the job should always be running
|
boolean |
isStartOnBoot()
Returns a boolean flag indicating whether the service is started when the system is booted.
|
void |
setId(java.lang.String serviceID)
Set the serviceID which should be a short version of the application name
It must not contain spaces.
|
void |
setKeepAlive(boolean keepAlive)
Set if the job should always be running, even if it crashes
|
void |
setStartOnBoot(boolean startOnBoot)
Sets a boolean flag indicating whether the service is started when the system is booted.
|
void |
setWrapper(java.lang.String wrapper)
Name of the daemon wrapper, or the program that should be run as daemon
|
getDescription, getDisplayName, getExecutable, getIconForType, getIcons, getMainClass, getMainJar, getStartArguments, getWorkDir, setDescription, setDisplayName, setExecutable, setIcons, setMainClass, setMainJar, setStartArguments, setWorkDirpublic Service(SetupBuilder setup)
setup - current SetupBuilderpublic boolean isStartOnBoot()
public void setStartOnBoot(boolean startOnBoot)
startOnBoot - boolean flag indicating whether the service is started when the system is bootedpublic java.lang.String getId()
public void setId(java.lang.String serviceID)
serviceID - the idpublic java.lang.String getWrapper()
public void setWrapper(java.lang.String wrapper)
wrapper - daemon namepublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - if the job should always be running, even if it crashes