public final class NetworkUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static DecimalFormat |
DECIMAL_FORMAT |
static String |
DEV_PROPERTY |
static String |
EMPTY_STRING |
static boolean |
EPOLL |
static com.google.gson.Gson |
GSON |
static ThreadLocalRandom |
RANDOM |
static String |
SLASH_STRING |
static String |
SPACE_STRING |
private static char[] |
VALUES |
| Modifier | Constructor and Description |
|---|---|
private |
NetworkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
addAll(Collection<T> key,
Collection<T> value) |
static void |
addAll(Document key,
Document value) |
static <T,V> void |
addAll(Map<T,V> map,
List<V> list,
Catcher<T,V> catcher) |
static <T,V> void |
addAll(Map<T,V> key,
Map<T,V> value) |
static <T,V> void |
addAll(Map<T,V> key,
Map<T,V> value,
Acceptable<V> handle) |
static boolean |
checkIsNumber(String input) |
static com.google.gson.reflect.TypeToken<CloudNetwork> |
cloudnet() |
static double |
cpuUsage() |
static io.netty.channel.EventLoopGroup |
eventLoopGroup() |
static io.netty.channel.EventLoopGroup |
eventLoopGroup(int threads) |
static io.netty.channel.EventLoopGroup |
eventLoopGroup(int threads,
ThreadFactory threadFactory) |
static io.netty.channel.EventLoopGroup |
eventLoopGroup(ThreadFactory threadFactory) |
static ConnectableAddress |
fromString(String input) |
static String |
getHostName() |
static void |
header() |
static void |
headerOut() |
private static void |
headerOut0() |
static io.netty.channel.Channel |
initChannel(io.netty.channel.Channel channel) |
static double |
internalCpuUsage() |
static <K,V> ConcurrentHashMap<K,V> |
newConcurrentHashMap() |
static <K,V> HashMap<K,V> |
newHashMap() |
static String |
randomString(int size) |
static String |
readWrapperKey() |
static Class<? extends io.netty.channel.socket.ServerSocketChannel> |
serverSocketChannel() |
static void |
sleepUninterruptedly(long time) |
static Class<? extends io.netty.channel.socket.SocketChannel> |
socketChannel() |
static com.sun.management.OperatingSystemMXBean |
system() |
static long |
systemMemory() |
static void |
writeWrapperKey() |
public static final boolean EPOLL
public static final com.google.gson.Gson GSON
public static final ThreadLocalRandom RANDOM
public static final DecimalFormat DECIMAL_FORMAT
public static final String DEV_PROPERTY
public static final String EMPTY_STRING
public static final String SPACE_STRING
public static final String SLASH_STRING
private static final char[] VALUES
public static String getHostName()
public static double cpuUsage()
public static double internalCpuUsage()
public static long systemMemory()
public static com.sun.management.OperatingSystemMXBean system()
public static com.google.gson.reflect.TypeToken<CloudNetwork> cloudnet()
public static Class<? extends io.netty.channel.socket.SocketChannel> socketChannel()
public static Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannel()
public static io.netty.channel.EventLoopGroup eventLoopGroup()
public static io.netty.channel.EventLoopGroup eventLoopGroup(int threads)
public static io.netty.channel.EventLoopGroup eventLoopGroup(ThreadFactory threadFactory)
public static io.netty.channel.EventLoopGroup eventLoopGroup(int threads,
ThreadFactory threadFactory)
public static <T> void addAll(Collection<T> key, Collection<T> value)
public static <T,V> void addAll(Map<T,V> key, Map<T,V> value, Acceptable<V> handle)
public static io.netty.channel.Channel initChannel(io.netty.channel.Channel channel)
public static boolean checkIsNumber(String input)
public static ConnectableAddress fromString(String input)
public static String randomString(int size)
public static void writeWrapperKey()
public static String readWrapperKey()
public static void sleepUninterruptedly(long time)
public static <K,V> HashMap<K,V> newHashMap()
public static <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap()
public static void header()
private static void headerOut0()
public static void headerOut()
Copyright © 2020. All rights reserved.