Class SystemUtils


  • public final class SystemUtils
    extends java.lang.Object
    System utils
    • Field Detail

      • OS_NAME

        public static final java.lang.String OS_NAME
      • isLinuxPlatform

        private static boolean isLinuxPlatform
      • JAVA_VERSION

        public static final java.lang.String JAVA_VERSION
      • isAfterJava6u4Version

        private static boolean isAfterJava6u4Version
    • Constructor Detail

      • SystemUtils

        private SystemUtils()
    • 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()