Tabnine Logo
RunningModeControl.getAndClearNewBootFileName
Code IndexAdd Tabnine to your IDE (free)

How to use
getAndClearNewBootFileName
method
in
org.jboss.as.controller.RunningModeControl

Best Java code snippets using org.jboss.as.controller.RunningModeControl.getAndClearNewBootFileName (Showing top 2 results out of 315)

origin: org.wildfly.core/wildfly-server

  @Override
  public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
    ConfigurationFile configurationFile = serverEnvironment.getServerConfigurationFile();
    if (runningModeControl.isReloaded()) {
      configurationFile.resetBootFile(runningModeControl.isUseCurrentConfig(), runningModeControl.getAndClearNewBootFileName());
    }
    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
    XmlConfigurationPersister persister;
    if (configurationFile.useGit()) {
      persister = new GitConfigurationPersister(serverEnvironment.getGitRepository(), configurationFile, rootElement, parser, parser,
          runningModeControl.isReloaded());
    } else {
      persister = new BackupXmlConfigurationPersister(configurationFile, rootElement, parser, parser,
          runningModeControl.isReloaded(), serverEnvironment.getLaunchType() == ServerEnvironment.LaunchType.EMBEDDED);
    }
    for (Namespace namespace : Namespace.domainValues()) {
      if (!namespace.equals(Namespace.CURRENT)) {
        persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
      }
    }
    extensionRegistry.setWriterRegistry(persister);
    return persister;
  }
};
origin: wildfly/wildfly-core

  @Override
  public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
    ConfigurationFile configurationFile = serverEnvironment.getServerConfigurationFile();
    if (runningModeControl.isReloaded()) {
      configurationFile.resetBootFile(runningModeControl.isUseCurrentConfig(), runningModeControl.getAndClearNewBootFileName());
    }
    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
    XmlConfigurationPersister persister;
    if (configurationFile.useGit()) {
      persister = new GitConfigurationPersister(serverEnvironment.getGitRepository(), configurationFile, rootElement, parser, parser,
          runningModeControl.isReloaded());
    } else {
      persister = new BackupXmlConfigurationPersister(configurationFile, rootElement, parser, parser,
          runningModeControl.isReloaded(), serverEnvironment.getLaunchType() == ServerEnvironment.LaunchType.EMBEDDED);
    }
    for (Namespace namespace : Namespace.domainValues()) {
      if (!namespace.equals(Namespace.CURRENT)) {
        persister.registerAdditionalRootElement(new QName(namespace.getUriString(), "server"), parser);
      }
    }
    extensionRegistry.setWriterRegistry(persister);
    return persister;
  }
};
org.jboss.as.controllerRunningModeControlgetAndClearNewBootFileName

Javadoc

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.

Popular methods of RunningModeControl

  • getRunningMode
  • <init>
  • setReloaded
  • isReloaded
  • isUseCurrentConfig
  • setRunningMode
  • setUseCurrentConfig
  • getSuspend
  • setNewBootFileName
    Set the new boot file name. For a standalone server this will be the location of the server configur
  • setSuspend

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now