Package org.jboss.as.controller
Class RunningModeControl
java.lang.Object
org.jboss.as.controller.RunningModeControl
Provides control over the server's current
RunningMode.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the new boot file name.booleanIndicates if the configuration extension should be applied after reloading.booleanbooleanvoidsetApplyConfigurationExtension(boolean applyConfigurationExtension) voidsetNewBootFileName(String newBootFileName) Set the new boot file name.voidvoidsetRunningMode(RunningMode runningMode) voidsetSuspend(Boolean suspend) voidsetUseCurrentConfig(boolean useCurrentConfig)
-
Constructor Details
-
RunningModeControl
-
-
Method Details
-
getRunningMode
-
setRunningMode
-
isReloaded
public boolean isReloaded() -
setReloaded
public void setReloaded() -
setUseCurrentConfig
public void setUseCurrentConfig(boolean useCurrentConfig) -
isUseCurrentConfig
public boolean isUseCurrentConfig() -
getSuspend
- Returns:
- The suspend mode, or null if if has not been expliticly set
-
setSuspend
-
isApplyConfigurationExtension
public boolean isApplyConfigurationExtension()Indicates if the configuration extension should be applied after reloading. This should occur on a reload if no changes were applied (thus stored) or after the changes made by a boot cli script.- Returns:
- true if we should apply the configuration extension - false otherwise.
-
setApplyConfigurationExtension
public void setApplyConfigurationExtension(boolean applyConfigurationExtension) -
getAndClearNewBootFileName
Get the new boot file name. For a standalone server this will be the location of the server configuration (i.e. the standalone.xml variety). For a host controller this will be the location of the host configuration (i.e. the host.xml variety). Once called this method will clear the new boot file name.- Returns:
- the new boot file name.
-
setNewBootFileName
Set the new boot file name. For a standalone server this will be the location of the server configuration (i.e. the standalone.xml variety). For a host controller this will be the location of the host configuration (i.e. the host.xml variety).- Parameters:
newBootFileName- the name of the new boot file.
-