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