Package com.wowza.util
Class SystemUtils
Object
com.wowza.util.SystemUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLoad 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, Map valueMap) Expand system level Java properties in a String in the form ${property-name}.static longGet CPU time in nanoseconds.static byte[]Get MAC address of localhost interface (only works on Java 6 or greater)static longGet system time in nanoseconds.static longGet user time in nanoseconds.static longtoNTPTime(long t) Convert a timecode value in milliseconds to NTP time
-
Field Details
-
defaultTimeZone
-
gmtTimeZone
-
defaultLocale
-
msb0baseTime
protected static final long msb0baseTime- See Also:
-
msb1baseTime
protected static final long msb1baseTime- See Also:
-
-
Constructor Details
-
SystemUtils
public SystemUtils()
-
-
Method Details
-
expandEnvironmentVariables
Expand system level Java properties in a String in the form ${property-name}- Parameters:
inValue- string with properties- Returns:
- expanded string
-
expandEnvironmentVariables
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 propertiesvalueMap- name/value pair map- Returns:
- expanded string
-
getMACAddress
public static byte[] getMACAddress()Get MAC address of localhost interface (only works on Java 6 or greater)- Returns:
- MAC address of localhost interface
-
addBouncyCastleSecurityProvider
public static void addBouncyCastleSecurityProvider()Load bouncy castle providers, Internal use. -
toNTPTime
public static long toNTPTime(long t) Convert a timecode value in milliseconds to NTP time- Parameters:
t- timecode value in milliseconds- Returns:
- NTP time
-
getCpuTime
public static long getCpuTime()Get CPU time in nanoseconds. -
getUserTime
public static long getUserTime()Get user time in nanoseconds. -
getSystemTime
public static long getSystemTime()Get system time in nanoseconds.
-