com.microstrategy.web.objects.admin.serverconfig.ServiceConfiguration |
This interface represents the configuration of a server instance which is configured
as a service. This interface is obtained from the ServerInstance
interface,
and changes made to the properties on this interface will only be saved upon calling
the save method on the ServerInstance
interface.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getDefaultLogin()
Returns the default service login for this system, if one exists.
| ||||||||||
abstract String |
getLogin()
Returns the login which is currently configured as the credentials for the service
to run as.
| ||||||||||
abstract int |
getMode()
Returns the mode of the service, from
EnumServiceMode . | ||||||||||
abstract boolean |
isLoginModifiable()
Returns whether the login is modifiable for this type of system.
| ||||||||||
abstract boolean |
isPasswordRequired()
Returns whether a password is required for the service login on this type of system.
| ||||||||||
abstract boolean |
isRestarterEnabled()
Returns whether the restarter is enabled for this service.
| ||||||||||
abstract void |
setConfiguration(int mode)
Sets the mode of the service.
| ||||||||||
abstract void |
setConfiguration(String login, String password)
Sets the configuration of the service.
| ||||||||||
abstract void |
setConfiguration(String login, String password, int mode)
Sets the configuration of the service.
| ||||||||||
abstract void |
setRestarterEnabled(boolean isEnabled)
Sets whether the restarter should be enabled for this service.
| ||||||||||
abstract boolean |
supportsMode(int serviceMode)
Returns whether the given mode is supported on this system.
|
Returns the default service login for this system, if one exists. If one does not exist, this method will return null or empty string.
Returns the login which is currently configured as the credentials for the service to run as.
Returns the mode of the service, from EnumServiceMode
.
EnumServiceMode
.
Returns whether the login is modifiable for this type of system.
Returns whether a password is required for the service login on this type of system.
Returns whether the restarter is enabled for this service.
Sets the mode of the service. This change will not be applied until the save method is
called on the ServerInstance
object which this object came from.
mode | The mode that the service should be set to, from EnumServiceMode .
|
---|
Sets the configuration of the service. This method will change the credentials used, but not
the mode. This change will not be applied until the save method is called
on the ServerInstance
object which this object came from.
login | The login to use for the service. |
---|---|
password | The password to use for the service. |
Sets the configuration of the service. This method will change the credentials used and
the mode. This change will not be applied until the save method is called
on the ServerInstance
object which this object came from.
login | The login to use for the service. |
---|---|
password | The password to use for the service. |
mode | The mode that the service should be set to, from EnumServiceMode .
|
Sets whether the restarter should be enabled for this service.
isEnabled | The desired state of the restarter. |
---|
Returns whether the given mode is supported on this system.
serviceMode | The service mode to check. |
---|