GrammarScope  4.0.0
Classes | Static Public Member Functions | Static Package Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.common.utils.SystemUtils Class Reference

Classes

enum  Unit
 

Static Public Member Functions

static boolean isRunningFromRunnable ()
 
static boolean detectStanford (final String[] classPath)
 
static String classpathsToString (final String[] classPath)
 
static String classpath ()
 
static String[] classpaths ()
 
static float getVersionAsFloat ()
 
static float parseVersion (final String version) throws NumberFormatException
 
static String[] getJavaProps ()
 
static String getJavaPropsString ()
 
static String getJavaMemory ()
 
static String systemProperties ()
 
static String systemInfo ()
 
static String javaInfo ()
 
static String memoryInfo ()
 
static String memoryInfo (final Unit u)
 
static String coreNLPInfo ()
 
static String all ()
 
static void main (final String[] args)
 

Static Package Functions

static DecimalFormat formatter ()
 

Private Member Functions

 SystemUtils ()
 

Static Private Member Functions

static String[] classpathsFromProperty ()
 
static String[] classpathsFromClassLoader ()
 
static String classpathFromClassLoader ()
 
static String classpathFromProperty ()
 

Static Private Attributes

static final String[] jVMkeys
 

Detailed Description

System utilities

Author
Bernard Bou [1313o.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om]

Constructor & Destructor Documentation

◆ SystemUtils()

grammarscope.common.utils.SystemUtils.SystemUtils ( )
private

Member Function Documentation

◆ all()

static String grammarscope.common.utils.SystemUtils.all ( )
static

All info

Returns
string representation of all info

◆ classpath()

static String grammarscope.common.utils.SystemUtils.classpath ( )
static

Classpath

Returns
class path as string

◆ classpathFromClassLoader()

static String grammarscope.common.utils.SystemUtils.classpathFromClassLoader ( )
staticprivate

Classpath (from class loader)

Returns
class path as string

◆ classpathFromProperty()

static String grammarscope.common.utils.SystemUtils.classpathFromProperty ( )
staticprivate

Classpath (from class loader)

Returns
class path as string

◆ classpaths()

static String [] grammarscope.common.utils.SystemUtils.classpaths ( )
static

Classpath

Returns
class path as array of strings

◆ classpathsFromClassLoader()

static String [] grammarscope.common.utils.SystemUtils.classpathsFromClassLoader ( )
staticprivate

Classpath (from class loader)

Returns
class path

◆ classpathsFromProperty()

static String [] grammarscope.common.utils.SystemUtils.classpathsFromProperty ( )
staticprivate

Classpath (from system property)

Returns
class path

◆ classpathsToString()

static String grammarscope.common.utils.SystemUtils.classpathsToString ( final String[]  classPath)
static

Classpaths (from system property)

Parameters
classPathclasspath
Returns
string representation of class path

◆ coreNLPInfo()

static String grammarscope.common.utils.SystemUtils.coreNLPInfo ( )
static

CoreNLP information

Returns
string representation of CoreNLP info

◆ detectStanford()

static boolean grammarscope.common.utils.SystemUtils.detectStanford ( final String[]  classPath)
static

◆ formatter()

static DecimalFormat grammarscope.common.utils.SystemUtils.formatter ( )
staticpackage

◆ getJavaMemory()

static String grammarscope.common.utils.SystemUtils.getJavaMemory ( )
static

Get property values as string

Returns
s string

◆ getJavaProps()

static String [] grammarscope.common.utils.SystemUtils.getJavaProps ( )
static

Get property values

Returns
string array of name=value pairs

◆ getJavaPropsString()

static String grammarscope.common.utils.SystemUtils.getJavaPropsString ( )
static

Get property values as string

Returns
s string

◆ getVersionAsFloat()

static float grammarscope.common.utils.SystemUtils.getVersionAsFloat ( )
static

Get JVM version

Returns
JVM version as float

◆ isRunningFromRunnable()

static boolean grammarscope.common.utils.SystemUtils.isRunningFromRunnable ( )
static

Whether program is running from runnable jar

Returns
true if program is running from runnable jar

◆ javaInfo()

static String grammarscope.common.utils.SystemUtils.javaInfo ( )
static

System properties

Returns
string representation of system properties

◆ main()

static void grammarscope.common.utils.SystemUtils.main ( final String[]  args)
static

Main

Parameters
argsunused

◆ memoryInfo() [1/2]

static String grammarscope.common.utils.SystemUtils.memoryInfo ( )
static

Memory information

Returns
string representation of memory info

◆ memoryInfo() [2/2]

static String grammarscope.common.utils.SystemUtils.memoryInfo ( final Unit  u)
static

◆ parseVersion()

static float grammarscope.common.utils.SystemUtils.parseVersion ( final String  version) throws NumberFormatException
static

◆ systemInfo()

static String grammarscope.common.utils.SystemUtils.systemInfo ( )
static

System information

Returns
string representation of system info

◆ systemProperties()

static String grammarscope.common.utils.SystemUtils.systemProperties ( )
static

System properties

Returns
string representation of system properties

Member Data Documentation

◆ jVMkeys

final String [] grammarscope.common.utils.SystemUtils.jVMkeys
staticprivate
Initial value:
= { "java.version", "java.vendor", "java.vendor.url", "java.specification.name", "java.specification.version",
"java.specification.vendor", "java.vm.name", "java.vm.version", "java.vm.vendor",
"java.vm.specification.name", "java.vm.specification.version", "java.vm.specification.vendor" }

The names of properties


The documentation for this class was generated from the following file: