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

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

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

origin: org.wildfly/wildfly-controller

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: org.wildfly.core/wildfly-controller

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: org.wildfly.core/wildfly-controller

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: wildfly/wildfly-core

RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: wildfly/wildfly-core

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: org.jboss.as/jboss-as-controller

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: wildfly/wildfly-core

@Override
public RunningMode getRunningMode() {
  return runningModeControl.getRunningMode();
}
origin: org.wildfly/wildfly-controller

@Override
public boolean isRuntimeOnlyRegistrationValid() {
  return processType.isServer() && runningModeControl.getRunningMode() != RunningMode.ADMIN_ONLY;
}
origin: org.jboss.as/jboss-as-controller

@Override
public boolean isRuntimeOnlyRegistrationValid() {
  return processType.isServer() && runningModeControl.getRunningMode() != RunningMode.ADMIN_ONLY;
}
origin: org.jboss.as/jboss-as-subsystem-test-framework

ServerEnvironment getServerEnvironment() {
  Properties props = new Properties();
  File home = new File("target/jbossas");
  delete(home);
  home.mkdir();
  props.put(ServerEnvironment.HOME_DIR, home.getAbsolutePath());
  File standalone = new File(home, "standalone");
  standalone.mkdir();
  props.put(ServerEnvironment.SERVER_BASE_DIR, standalone.getAbsolutePath());
  File configuration = new File(standalone, "configuration");
  configuration.mkdir();
  props.put(ServerEnvironment.SERVER_CONFIG_DIR, configuration.getAbsolutePath());
  File xml = new File(configuration, "standalone.xml");
  try {
    xml.createNewFile();
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  props.put(ServerEnvironment.JBOSS_SERVER_DEFAULT_CONFIG, "standalone.xml");
  return new ServerEnvironment(null, props, new HashMap<String, String>(), "standalone.xml", null, LaunchType.STANDALONE, runningModeControl.getRunningMode(), null);
}
origin: org.wildfly.core/wildfly-subsystem-test-framework

public ServerEnvironment getServerEnvironment() {
  Properties props = new Properties();
  File home = new File("target/jbossas");
  delete(home);
  home.mkdir();
  props.put(ServerEnvironment.HOME_DIR, home.getAbsolutePath());
  File standalone = new File(home, "standalone");
  standalone.mkdir();
  props.put(ServerEnvironment.SERVER_BASE_DIR, standalone.getAbsolutePath());
  File configuration = new File(standalone, "configuration");
  configuration.mkdir();
  props.put(ServerEnvironment.SERVER_CONFIG_DIR, configuration.getAbsolutePath());
  File xml = new File(configuration, "standalone.xml");
  try {
    xml.createNewFile();
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  props.put(ServerEnvironment.JBOSS_SERVER_DEFAULT_CONFIG, "standalone.xml");
  return new ServerEnvironment(null, props, new HashMap<String, String>(), "standalone.xml", null, LaunchType.STANDALONE, runningModeControl.getRunningMode(), null, false);
}
origin: wildfly/wildfly-core

public ServerEnvironment getServerEnvironment() {
  Properties props = new Properties();
  File home = new File("target/jbossas");
  delete(home);
  home.mkdir();
  props.put(ServerEnvironment.HOME_DIR, home.getAbsolutePath());
  File standalone = new File(home, "standalone");
  standalone.mkdir();
  props.put(ServerEnvironment.SERVER_BASE_DIR, standalone.getAbsolutePath());
  File configuration = new File(standalone, "configuration");
  configuration.mkdir();
  props.put(ServerEnvironment.SERVER_CONFIG_DIR, configuration.getAbsolutePath());
  File xml = new File(configuration, "standalone.xml");
  try {
    xml.createNewFile();
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  props.put(ServerEnvironment.JBOSS_SERVER_DEFAULT_CONFIG, "standalone.xml");
  return new ServerEnvironment(null, props, new HashMap<String, String>(), "standalone.xml", null, LaunchType.STANDALONE, runningModeControl.getRunningMode(), null, false);
}
origin: org.wildfly.core/wildfly-server

@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
  context.getResult().set(runningModeControl.getRunningMode().name());
}
origin: wildfly/wildfly-core

@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
  context.getResult().set(runningModeControl.getRunningMode().name());
}
origin: org.wildfly.core/wildfly-server

@Override
public RunningMode getRunningMode() {
  return RunningMode.from(runningModeControl.getRunningMode().name());
}
origin: wildfly/wildfly-core

@Override
public RunningMode getRunningMode() {
  return RunningMode.from(runningModeControl.getRunningMode().name());
}
origin: org.wildfly.core/wildfly-core-model-test-framework

private ServerEnvironment createStandaloneServerEnvironment() {
  Properties props = new Properties();
  File home = new File("target/jbossas");
  delete(home);
  home.mkdir();
  delay(10);
  props.put(ServerEnvironment.HOME_DIR, home.getAbsolutePath());
  File standalone = new File(home, "standalone");
  standalone.mkdir();
  props.put(ServerEnvironment.SERVER_BASE_DIR, standalone.getAbsolutePath());
  File configuration = new File(standalone, "configuration");
  configuration.mkdir();
  props.put(ServerEnvironment.SERVER_CONFIG_DIR, configuration.getAbsolutePath());
  File xml = new File(configuration, "standalone.xml");
  try {
    xml.createNewFile();
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  props.put(ServerEnvironment.JBOSS_SERVER_DEFAULT_CONFIG, "standalone.xml");
  ProductConfig pc =  new ProductConfig("Test", Version.AS_VERSION, "main");
  return new ServerEnvironment(null, props, new HashMap<String, String>(), "standalone.xml", null, LaunchType.STANDALONE, runningModeControl.getRunningMode(), pc, false);
}
origin: wildfly/wildfly-core

private ServerEnvironment createStandaloneServerEnvironment() {
  Properties props = new Properties();
  File home = new File("target/jbossas");
  delete(home);
  home.mkdir();
  delay(10);
  props.put(ServerEnvironment.HOME_DIR, home.getAbsolutePath());
  File standalone = new File(home, "standalone");
  standalone.mkdir();
  props.put(ServerEnvironment.SERVER_BASE_DIR, standalone.getAbsolutePath());
  File configuration = new File(standalone, "configuration");
  configuration.mkdir();
  props.put(ServerEnvironment.SERVER_CONFIG_DIR, configuration.getAbsolutePath());
  File xml = new File(configuration, "standalone.xml");
  try {
    xml.createNewFile();
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  props.put(ServerEnvironment.JBOSS_SERVER_DEFAULT_CONFIG, "standalone.xml");
  ProductConfig pc =  new ProductConfig("Test", Version.AS_VERSION, "main");
  return new ServerEnvironment(null, props, new HashMap<String, String>(), "standalone.xml", null, LaunchType.STANDALONE, runningModeControl.getRunningMode(), pc, false);
}
origin: org.wildfly/wildfly-server

@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
  context.getResult().set(runningModeControl.getRunningMode().name());
  context.stepCompleted();
}
origin: org.jboss.as/jboss-as-server

@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
  context.getResult().set(runningModeControl.getRunningMode().name());
  context.stepCompleted();
}
org.jboss.as.controllerRunningModeControlgetRunningMode

Popular methods of RunningModeControl

  • <init>
  • setReloaded
  • isReloaded
  • 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 in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
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