Class RunningModeControl

java.lang.Object
org.jboss.as.controller.RunningModeControl

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

    • RunningModeControl

      public RunningModeControl(RunningMode initialMode)
  • Method Details

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

      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.