java.lang.Object |
↳ |
com.microstrategy.utils.SystemInfo |
Class Overview
Utility class for checking Java system properties.
Summary
Public Methods |
static
boolean
|
isEnabled(String systemProperty)
|
static
boolean
|
isIIS()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
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