Class RunningModeControl


  • public class RunningModeControl
    extends Object
    Provides control over the server's current RunningMode.
    Author:
    Brian Stansberry (c) 2011 Red Hat Inc.
    • Constructor Detail

      • RunningModeControl

        public RunningModeControl​(RunningMode initialMode)
    • Method Detail

      • 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.