public class

SystemInfo

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.SystemInfo

Class Overview

Utility class for checking Java system properties.

Summary

Public Constructors
SystemInfo()
Public Methods
static boolean isEnabled(String systemProperty)
Checks whether a getProperty(String) is enabled.
static boolean isIIS()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SystemInfo ()

Public Methods

public static boolean isEnabled (String systemProperty)

Checks whether a getProperty(String) is enabled. If a property is explicitly set to "1" or "true" or simply defined without any parameters, it is considered enabled. For example for "someProperty":

  • Enabled: -DsomeProperty -DsomeProperty=1 -DsomeProperty=true -DsomeProperty=abc
  • Disabled: -DsomeProperty=0 -DsomeProperty=false

Parameters
systemProperty Key name of the system property
Returns
  • whether property is enabled

public static boolean isIIS ()

Returns
  • whether the application is run from IIS