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

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

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

origin: org.rhq/rhq-core-native-system

/**
 * If the native system is both {@link #isNativeSystemInfoAvailable() available} and
 * {@link #isNativeSystemInfoDisabled() enabled}, this will return the native system's version string. Otherwise, a
 * generic Java version message is returned.
 *
 * @return native system version string
 */
public static synchronized String getNativeSystemInfoVersion() {
  String version = null;
  Throwable error = null;
  initialize(); // make sure we've loaded the native libraries, if appropriate
  if (!isNativeSystemInfoDisabled() && isNativeSystemInfoAvailable()) {
    try {
      version = "Version=" + invokeApi(NativeApi.VERSION_STRING) + " (" + invokeApi(NativeApi.BUILD_DATE)
        + "); Native version=" + invokeApi(NativeApi.NATIVE_VERSION_STRING) + " ("
        + invokeApi(NativeApi.NATIVE_BUILD_DATE) + ")";
    } catch (Throwable t) {
      error = t;
    }
  }
  if (version == null) {
    version = "Native system not supported - Java version is " + System.getProperty("java.version");
    if (error != null) {
      version += " : " + error;
    }
  }
  return version;
}
origin: rhq-project/rhq

/**
 * If the native system is both {@link #isNativeSystemInfoAvailable() available} and
 * {@link #isNativeSystemInfoDisabled() enabled}, this will return the native system's version string. Otherwise, a
 * generic Java version message is returned.
 *
 * @return native system version string
 */
public static synchronized String getNativeSystemInfoVersion() {
  String version = null;
  Throwable error = null;
  initialize(); // make sure we've loaded the native libraries, if appropriate
  if (!isNativeSystemInfoDisabled() && isNativeSystemInfoAvailable()) {
    try {
      version = "Version=" + invokeApi(NativeApi.VERSION_STRING) + " (" + invokeApi(NativeApi.BUILD_DATE)
        + "); Native version=" + invokeApi(NativeApi.NATIVE_VERSION_STRING) + " ("
        + invokeApi(NativeApi.NATIVE_BUILD_DATE) + ")";
    } catch (Throwable t) {
      error = t;
    }
  }
  if (version == null) {
    version = "Native system not supported - Java version is " + System.getProperty("java.version");
    if (error != null) {
      version += " : " + error;
    }
  }
  return version;
}
origin: rhq-project/rhq

nativeApis.put(NativeApi.NATIVE_BUILD_DATE, clazz.getField(NativeApi.NATIVE_BUILD_DATE.name()));
invokeApi(NativeApi.load);
origin: org.rhq/rhq-core-native-system

nativeApis.put(NativeApi.NATIVE_BUILD_DATE, clazz.getField(NativeApi.NATIVE_BUILD_DATE.name()));
invokeApi(NativeApi.load);
org.rhq.core.systemSystemInfoFactoryinvokeApi

Javadoc

In order for this class to not have any compile or load time dependencies on the SIGAR jar, use this method to invoke static methods on SIGAR's main class. This allows applications that want to use this factory but be able to work even if an exception occurs when loading SIGAR.

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
  • enableNativeSystemInfo
    This will allow the factory to load the native libraries and #createSystemInfo() native objects. Not
  • 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

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ImageIO (javax.imageio)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
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