Package org.jboss.as.controller
Class RunningModeControl
- java.lang.Object
-
- org.jboss.as.controller.RunningModeControl
-
public class RunningModeControl extends Object
Provides control over the server's currentRunningMode
.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description RunningModeControl(RunningMode initialMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAndClearNewBootFileName()
Get the new boot file name.RunningMode
getRunningMode()
Boolean
getSuspend()
boolean
isReloaded()
boolean
isUseCurrentConfig()
void
setNewBootFileName(String newBootFileName)
Set the new boot file name.void
setReloaded()
void
setRunningMode(RunningMode runningMode)
void
setSuspend(Boolean suspend)
void
setUseCurrentConfig(boolean useCurrentConfig)
-
-
-
Constructor Detail
-
RunningModeControl
public RunningModeControl(RunningMode initialMode)
-
-
Method Detail
-
getRunningMode
public RunningMode getRunningMode()
-
setRunningMode
public void setRunningMode(RunningMode runningMode)
-
isReloaded
public boolean isReloaded()
-
setReloaded
public void setReloaded()
-
setUseCurrentConfig
public void setUseCurrentConfig(boolean useCurrentConfig)
-
isUseCurrentConfig
public boolean isUseCurrentConfig()
-
getSuspend
public Boolean getSuspend()
- Returns:
- The suspend mode, or null if if has not been expliticly set
-
setSuspend
public void setSuspend(Boolean suspend)
-
getAndClearNewBootFileName
public String 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
public void setNewBootFileName(String newBootFileName)
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.
-
-