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 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 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,
FilesystemBasedDigest digestGlobal,
DataBlock block,
FilesystemBasedDigest digestBlock) |
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 int nbCommandChannels(Configuration configuration)
configuration
- public static io.netty.channel.ChannelFuture writeBackDataBlock(LocalChannelReference localChannelReference, FilesystemBasedDigest digestGlobal, DataBlock block, FilesystemBasedDigest digestBlock) throws OpenR66ProtocolPacketException
localChannelReference
- digestGlobal
- block
- OpenR66ProtocolPacketException
public static void writeEndTransfer(LocalChannelReference localChannelReference) throws OpenR66ProtocolPacketException
localChannelReference
- OpenR66ProtocolPacketException
public static 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 void run()
public static void startShutdown()
Copyright © 2009–2022 Waarp. All rights reserved.