Package com.google.code.yanf4j.util
Class SystemUtils
- java.lang.Object
-
- com.google.code.yanf4j.util.SystemUtils
-
public final class SystemUtils extends java.lang.ObjectSystem utils
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanisAfterJava6u4Versionprivate static booleanisLinuxPlatformstatic java.lang.StringJAVA_VERSIONstatic java.lang.StringOS_NAME
-
Constructor Summary
Constructors Modifier Constructor Description privateSystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.RandomcreateRandom()static java.util.Queue<?>createTransferQueue()static intgetCpuProcessorCount()static java.lang.StringgetRawAddress(java.net.InetSocketAddress inetSocketAddress)static intgetSystemThreadCount()static booleanisAfterJava6u4Version()static booleanisLinuxPlatform()static voidmain(java.lang.String[] args)static java.nio.channels.SelectoropenSelector()
-
-
-
Method Detail
-
isLinuxPlatform
public static final boolean isLinuxPlatform()
-
isAfterJava6u4Version
public static final boolean isAfterJava6u4Version()
-
main
public static void main(java.lang.String[] args)
-
getSystemThreadCount
public static final int getSystemThreadCount()
-
getCpuProcessorCount
public static final int getCpuProcessorCount()
-
openSelector
public static final java.nio.channels.Selector openSelector() throws java.io.IOException- Throws:
java.io.IOException
-
getRawAddress
public static final java.lang.String getRawAddress(java.net.InetSocketAddress inetSocketAddress)
-
createTransferQueue
public static final java.util.Queue<?> createTransferQueue()
-
createRandom
public static java.util.Random createRandom()
-
-