congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SystemInfoFactory.enableNativeSystemInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
enableNativeSystemInfo
method
in
org.rhq.core.system.SystemInfoFactory

Best Java code snippets using org.rhq.core.system.SystemInfoFactory.enableNativeSystemInfo (Showing top 1 results out of 315)

origin: org.rhq/rhq-core-plugin-container

/**
 * Enables or disables the native layer.
 * @param tokens tokenized command line tokens[0] is the command itself
 */
private void doNative(String[] tokens) {
  String what = tokens[1];
  if (what.startsWith("e")) {
    SystemInfoFactory.enableNativeSystemInfo();
    System.out.println("Native layer enabled.");
  } else if (what.startsWith("d")) {
    SystemInfoFactory.disableNativeSystemInfo();
    System.out.println("Native layer disabled.");
  } else if (what.startsWith("s")) {
    System.out.println("Native layer is:");
    System.out.println(SystemInfoFactory.isNativeSystemInfoDisabled() ? "Disabled" : "Enabled");
    if (!SystemInfoFactory.isNativeSystemInfoDisabled()) {
      System.out.println(SystemInfoFactory.isNativeSystemInfoAvailable() ? "Available" : "Not Available");
      System.out.println(SystemInfoFactory.isNativeSystemInfoInitialized() ? "Initialized" : "Not initialized");
    }
  } else {
    System.err.println("Unknown option. Only 'e', 'd' and 's' are applicable (enable/disable/status)");
    return;
  }
}
org.rhq.core.systemSystemInfoFactoryenableNativeSystemInfo

Javadoc

This will allow the factory to load the native libraries and #createSystemInfo() native objects. Note that this will have no effect if there are no native libraries #isNativeSystemInfoAvailable().

Popular methods of SystemInfoFactory

  • createSystemInfo
    Returns the appropriate SystemInfo implementation based on the platform/operating system the JVM is
  • isNativeSystemInfoDisabled
    Returns true if this factory was told to #disableNativeSystemInfo() the native layer. This only indi
  • disableNativeSystemInfo
    This will tell the factory to not #createSystemInfo() any native objects and to not load the native
  • isNativeSystemInfoAvailable
    If there is a native library available for the JVM's platform/operating system, true is returned. I
  • isNativeSystemInfoInitialized
    This returns true iff the native libraries have actually been initialized. This will return false if
  • createJavaSystemInfo
    Under some circumstances, you may want to force this factory to provide a Java-only SystemInfoimplem
  • getNativeSystemInfoVersion
    If the native system is both #isNativeSystemInfoAvailable() and #isNativeSystemInfoDisabled(), this
  • initialize
    This will initialize the native layer, if applicable. If the native layer was already initialized, t
  • invokeApi
    In order for this class to not have any compile or load time dependencies on the SIGAR jar, use this

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Permission (java.security)
    Legacy security code; do not use.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
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