Package com.wowza.util
Class SystemUtils
- Object
- 
- com.wowza.util.SystemUtils
 
- 
 public class SystemUtils extends Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSystemUtils.ReplaceItem
 - 
Field SummaryFields Modifier and Type Field Description static java.util.LocaledefaultLocalestatic java.util.TimeZonedefaultTimeZonestatic java.util.TimeZonegmtTimeZoneprotected static longmsb0baseTimeprotected static longmsb1baseTime
 - 
Constructor SummaryConstructors Constructor Description SystemUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddBouncyCastleSecurityProvider()Load bouncy castle providers, Internal use.static StringexpandEnvironmentVariables(String inValue)Expand system level Java properties in a String in the form ${property-name}static StringexpandEnvironmentVariables(String inValue, java.util.Map valueMap)Expand system level Java properties in a String in the form ${property-name}.static longgetCpuTime()Get CPU time in nanoseconds.static byte[]getMACAddress()Get MAC address of localhost interface (only works on Java 6 or greater)static longgetSystemTime()Get system time in nanoseconds.static longgetUserTime()Get user time in nanoseconds.static longtoNTPTime(long t)Convert a timecode value in milliseconds to NTP time
 
- 
- 
- 
Field Detail- 
defaultTimeZonepublic static final java.util.TimeZone defaultTimeZone 
 - 
gmtTimeZonepublic static final java.util.TimeZone gmtTimeZone 
 - 
defaultLocalepublic static final java.util.Locale defaultLocale 
 - 
msb0baseTimeprotected static final long msb0baseTime - See Also:
- Constant Field Values
 
 - 
msb1baseTimeprotected static final long msb1baseTime - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
expandEnvironmentVariablespublic static String expandEnvironmentVariables(String inValue) Expand system level Java properties in a String in the form ${property-name}- Parameters:
- inValue- string with properties
- Returns:
- expanded string
 
 - 
expandEnvironmentVariablespublic static String expandEnvironmentVariables(String inValue, java.util.Map valueMap)Expand system level Java properties in a String in the form ${property-name}. You can also pass in a map of name/value pairs that will expand the list of available properties- Parameters:
- inValue- string with properties
- valueMap- name/value pair map
- Returns:
- expanded string
 
 - 
getMACAddresspublic static byte[] getMACAddress() Get MAC address of localhost interface (only works on Java 6 or greater)- Returns:
- MAC address of localhost interface
 
 - 
addBouncyCastleSecurityProviderpublic static void addBouncyCastleSecurityProvider() Load bouncy castle providers, Internal use.
 - 
toNTPTimepublic static long toNTPTime(long t) Convert a timecode value in milliseconds to NTP time- Parameters:
- t- timecode value in milliseconds
- Returns:
- NTP time
 
 - 
getCpuTimepublic static long getCpuTime() Get CPU time in nanoseconds.
 - 
getUserTimepublic static long getUserTime() Get user time in nanoseconds.
 - 
getSystemTimepublic static long getSystemTime() Get system time in nanoseconds.
 
- 
 
-