public class ServiceConfiguration
extends java.lang.Object
implements java.io.Serializable
WinServices
. If you don't set a property the original value will be preserved for existing services.Constructor and Description |
---|
ServiceConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServiceConfiguration |
binaryName(java.lang.String binaryName)
The path to the binary.
|
ServiceConfiguration |
delayedAutoStart(java.lang.Boolean delayedAutoStart)
If startType is set to AUTO, you can specify with this property that the service is started with a short delay after all other auto-start services.
|
ServiceConfiguration |
dependencies(java.lang.String dependencies)
A comma separated list of dependencies
|
ServiceConfiguration |
description(java.lang.String description)
An additional description for the service
|
ServiceConfiguration |
displayName(java.lang.String displayName)
The display name.
|
ServiceConfiguration |
otherAccountName(java.lang.String otherAccountName)
The service account name to be used.
|
ServiceConfiguration |
otherAccountPassword(java.lang.String otherAccountPassword)
The service account password to be used.
|
ServiceConfiguration |
restartOnFailure(java.lang.Boolean restartOnFailure)
If set to true, the service will be restarted after a second if it was terminated with an error
|
ServiceConfiguration |
serviceAccount(ServiceAccount serviceAccount)
The service account to be used.
|
ServiceConfiguration |
startType(ServiceStartType startType)
The start type
|
public ServiceConfiguration binaryName(java.lang.String binaryName)
binaryName
- the binary namepublic ServiceConfiguration displayName(java.lang.String displayName)
displayName
- the display namepublic ServiceConfiguration startType(ServiceStartType startType)
startType
- the start typepublic ServiceConfiguration dependencies(java.lang.String dependencies)
dependencies
- the dependenciespublic ServiceConfiguration description(java.lang.String description)
description
- the descriptionpublic ServiceConfiguration delayedAutoStart(java.lang.Boolean delayedAutoStart)
delayedAutoStart
- true if the service start should be delayedpublic ServiceConfiguration restartOnFailure(java.lang.Boolean restartOnFailure)
restartOnFailure
- true if a restart should be performedpublic ServiceConfiguration serviceAccount(ServiceAccount serviceAccount)
serviceAccount
- the account to be usedpublic ServiceConfiguration otherAccountName(java.lang.String otherAccountName)
otherAccountName
- the account name or SIDpublic ServiceConfiguration otherAccountPassword(java.lang.String otherAccountPassword)
otherAccountPassword
- the account password