Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static Integer |
NOCHANNEL |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ChannelUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
exit()
Exit global ChannelFactory
|
static InetAddress |
getLocalInetAddress(io.netty.channel.Channel channel)
Get the Local InetAddress
|
static InetSocketAddress |
getLocalInetSocketAddress(io.netty.channel.Channel channel)
Get the Local InetSocketAddress
|
static InetAddress |
getRemoteInetAddress(io.netty.channel.Channel channel)
Get the Remote InetAddress
|
static InetSocketAddress |
getRemoteInetSocketAddress(io.netty.channel.Channel channel)
Get the Remote InetSocketAddress
|
static int |
nbCommandChannels(Configuration configuration)
Return the current number of network connections
|
void |
run()
This function is the top function to be called when the server is to be
shutdown.
|
static void |
startShutdown()
Start Shutdown
|
static void |
stopLogger() |
static io.netty.channel.ChannelFuture |
writeAbstractLocalPacket(LocalChannelReference localChannelReference,
AbstractLocalPacket packet,
boolean wait)
Write an AbstractLocalPacket to the network Channel
|
static io.netty.channel.ChannelFuture |
writeBackDataBlock(LocalChannelReference localChannelReference,
DataBlock block) |
static void |
writeEndTransfer(LocalChannelReference localChannelReference)
Write the EndTransfer
|
static void |
writeEndTransfer(LocalChannelReference localChannelReference,
String hash)
Write the EndTransfer plus Global Hash
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final Integer NOCHANNEL
public static final InetAddress getRemoteInetAddress(io.netty.channel.Channel channel)
channel
- public static final InetAddress getLocalInetAddress(io.netty.channel.Channel channel)
channel
- public static final InetSocketAddress getRemoteInetSocketAddress(io.netty.channel.Channel channel)
channel
- public static final InetSocketAddress getLocalInetSocketAddress(io.netty.channel.Channel channel)
channel
- public static final int nbCommandChannels(Configuration configuration)
configuration
- public static io.netty.channel.ChannelFuture writeBackDataBlock(LocalChannelReference localChannelReference, DataBlock block) throws OpenR66ProtocolPacketException
localChannelReference
- block
- OpenR66ProtocolPacketException
public static final void writeEndTransfer(LocalChannelReference localChannelReference) throws OpenR66ProtocolPacketException
localChannelReference
- OpenR66ProtocolPacketException
public static final void writeEndTransfer(LocalChannelReference localChannelReference, String hash) throws OpenR66ProtocolPacketException
localChannelReference
- hash
- OpenR66ProtocolPacketException
public static io.netty.channel.ChannelFuture writeAbstractLocalPacket(LocalChannelReference localChannelReference, AbstractLocalPacket packet, boolean wait) throws OpenR66ProtocolPacketException
localChannelReference
- packet
- wait
- OpenR66ProtocolPacketException
public static void exit()
public static final void stopLogger()
public void run()
public static final void startShutdown()
Copyright © 2009–2020 Waarp. All rights reserved.