RunningModeControl.isReloaded
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.jboss.as.controller.RunningModeControl.isReloaded(Showing top 7 results out of 315)

  • Common ways to obtain RunningModeControl
private void myMethod () {
RunningModeControl r =
  • RunningMode initialMode;new RunningModeControl(initialMode)
  • ServerEnvironment serverEnvironment;serverEnvironment.getRunningModeControl()
  • Bootstrap.Configuration bootstrapConfiguration;bootstrapConfiguration.getRunningModeControl()
  • Smart code suggestions by Codota
}
origin: org.jboss.as/jboss-as-server

public synchronized void start(final StartContext context) throws StartException {
  ServerEnvironment serverEnvironment = configuration.getServerEnvironment();
  if (runningModeControl.isReloaded()) {
  }
  Bootstrap.ConfigurationPersisterFactory configurationPersisterFactory = configuration.getConfigurationPersisterFactory();
  extensibleConfigurationPersister = configurationPersisterFactory.createConfigurationPersister(serverEnvironment, getExecutorServiceInjector().getOptionalValue());
  setConfigurationPersister(extensibleConfigurationPersister);
  rootResourceDefinition.setDelegate(
      new ServerRootResourceDefinition(injectedContentRepository.getValue(),
          extensibleConfigurationPersister, configuration.getServerEnvironment(), processState,
          runningModeControl, vaultReader, configuration.getExtensionRegistry(),
          getExecutorServiceInjector().getOptionalValue() != null,
          (PathManagerService)injectedPathManagerService.getValue()));
  super.start(context);
}
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);
  BackupXmlConfigurationPersister 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: org.jboss.as/jboss-as-server

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

public synchronized void start(final StartContext context) throws StartException {
  ServerEnvironment serverEnvironment = configuration.getServerEnvironment();
  if (runningModeControl.isReloaded()) {
  }
  Bootstrap.ConfigurationPersisterFactory configurationPersisterFactory = configuration.getConfigurationPersisterFactory();
  extensibleConfigurationPersister = configurationPersisterFactory.createConfigurationPersister(serverEnvironment, getExecutorServiceInjector().getOptionalValue());
  setConfigurationPersister(extensibleConfigurationPersister);
  rootResourceDefinition.setDelegate(
      new ServerRootResourceDefinition(injectedContentRepository.getValue(),
          extensibleConfigurationPersister, configuration.getServerEnvironment(), processState,
          runningModeControl, vaultReader, configuration.getExtensionRegistry(),
          getExecutorServiceInjector().getOptionalValue() != null,
          (PathManagerService)injectedPathManagerService.getValue(),
          new DomainServerCommunicationServices.OperationIDUpdater() {
            @Override
            public void updateOperationID(final int operationID) {
              DomainServerCommunicationServices.updateOperationID(operationID);
            }
          },
          authorizer,
          super.getAuditLogger()));
  super.start(context);
}
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);
  BackupXmlConfigurationPersister 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: 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);
  BackupXmlConfigurationPersister 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: org.wildfly/wildfly-server

  @Override
  public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {
    ConfigurationFile configurationFile = serverEnvironment.getServerConfigurationFile();
    if (runningModeControl.isReloaded()) {
      configurationFile.resetBootFile(runningModeControl.isUseCurrentConfig());
    }
    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader(), executorService, extensionRegistry);
    BackupXmlConfigurationPersister persister = new BackupXmlConfigurationPersister(configurationFile, rootElement, parser, parser);
    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.controllerRunningModeControlisReloaded

Popular methods of RunningModeControl

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

Popular classes and methods

  • getApplicationContext (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)