public final class Native
extends java.lang.Object
Internal usage only!
Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods
.
Modifier and Type | Field and Description |
---|---|
static int |
EPOLLERR |
static int |
EPOLLET |
static int |
EPOLLIN |
static int |
EPOLLOUT |
static int |
EPOLLRDHUP |
static int |
IOV_MAX |
static boolean |
IS_SUPPORTING_SENDMMSG |
static boolean |
IS_SUPPORTING_TCP_FASTOPEN |
static java.lang.String |
KERNEL_VERSION |
private static java.nio.channels.ClosedChannelException |
SENDFILE_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SENDFILE_CONNECTION_RESET_EXCEPTION |
private static java.nio.channels.ClosedChannelException |
SENDMMSG_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SENDMMSG_CONNECTION_RESET_EXCEPTION |
private static java.nio.channels.ClosedChannelException |
SPLICE_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SPLICE_CONNECTION_RESET_EXCEPTION |
static long |
SSIZE_MAX |
static int |
TCP_MD5SIG_MAXKEYLEN |
static int |
UIO_MAX_IOV |
Modifier | Constructor and Description |
---|---|
private |
Native() |
Modifier and Type | Method and Description |
---|---|
private static int |
epollCreate() |
static void |
epollCtlAdd(int efd,
int fd,
int flags) |
private static int |
epollCtlAdd0(int efd,
int fd,
int flags) |
static void |
epollCtlDel(int efd,
int fd) |
private static int |
epollCtlDel0(int efd,
int fd) |
static void |
epollCtlMod(int efd,
int fd,
int flags) |
private static int |
epollCtlMod0(int efd,
int fd,
int flags) |
static int |
epollWait(int efd,
EpollEventArray events,
int timeout) |
private static int |
epollWait0(int efd,
long address,
int len,
int timeout) |
private static int |
eventFd() |
static void |
eventFdRead(int fd) |
static void |
eventFdWrite(int fd,
long value) |
static int |
getTcpKeepCnt(int fd) |
static int |
getTcpKeepIdle(int fd) |
static int |
getTcpKeepIntvl(int fd) |
static int |
getTcpNotSentLowAt(int fd) |
static int |
getTcpUserTimeout(int milliseconds) |
static int |
getTrafficClass(int fd) |
static int |
isBroadcast(int fd) |
static int |
isIpFreeBind(int fd) |
static int |
isReuseAddress(int fd) |
static int |
isReusePort(int fd) |
private static void |
loadNativeLibrary() |
static FileDescriptor |
newEpollCreate() |
static FileDescriptor |
newEventFd() |
static int |
offsetofEpollData() |
static int |
recvFd(int fd) |
private static int |
recvFd0(int fd) |
static int |
sendFd(int socketFd,
int fd) |
private static int |
sendFd0(int socketFd,
int fd) |
static long |
sendfile(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
private static long |
sendfile0(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
static int |
sendmmsg(int fd,
NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
private static int |
sendmmsg0(int fd,
NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
static void |
setBroadcast(int fd,
int broadcast) |
static void |
setIpFreeBind(int fd,
int freeBind) |
static void |
setReuseAddress(int fd,
int reuseAddress) |
static void |
setReusePort(int fd,
int reuseAddress) |
static void |
setTcpFastopen(int fd,
int tcpFastopenBacklog) |
static void |
setTcpKeepCnt(int fd,
int probes) |
static void |
setTcpKeepIdle(int fd,
int seconds) |
static void |
setTcpKeepIntvl(int fd,
int seconds) |
static void |
setTcpMd5Sig(int fd,
java.net.InetAddress address,
byte[] key) |
private static void |
setTcpMd5Sig0(int fd,
byte[] address,
int scopeId,
byte[] key) |
static void |
setTcpNotSentLowAt(int fd,
int tcpNotSentLowAt) |
static void |
setTcpUserTimeout(int fd,
int milliseconds) |
static void |
setTrafficClass(int fd,
int tcpNoDelay) |
static int |
sizeofEpollEvent() |
static int |
splice(int fd,
long offIn,
int fdOut,
long offOut,
long len) |
private static int |
splice0(int fd,
long offIn,
int fdOut,
long offOut,
long len) |
static void |
tcpInfo(int fd,
EpollTcpInfo info) |
private static void |
tcpInfo0(int fd,
int[] array) |
public static final int EPOLLIN
public static final int EPOLLOUT
public static final int EPOLLRDHUP
public static final int EPOLLET
public static final int EPOLLERR
public static final int IOV_MAX
public static final int UIO_MAX_IOV
public static final boolean IS_SUPPORTING_SENDMMSG
public static final boolean IS_SUPPORTING_TCP_FASTOPEN
public static final long SSIZE_MAX
public static final int TCP_MD5SIG_MAXKEYLEN
public static final java.lang.String KERNEL_VERSION
private static final Errors.NativeIoException SENDFILE_CONNECTION_RESET_EXCEPTION
private static final Errors.NativeIoException SENDMMSG_CONNECTION_RESET_EXCEPTION
private static final Errors.NativeIoException SPLICE_CONNECTION_RESET_EXCEPTION
private static final java.nio.channels.ClosedChannelException SENDFILE_CLOSED_CHANNEL_EXCEPTION
private static final java.nio.channels.ClosedChannelException SENDMMSG_CLOSED_CHANNEL_EXCEPTION
private static final java.nio.channels.ClosedChannelException SPLICE_CLOSED_CHANNEL_EXCEPTION
public static FileDescriptor newEventFd()
private static int eventFd()
public static void eventFdWrite(int fd, long value)
public static void eventFdRead(int fd)
public static FileDescriptor newEpollCreate()
private static int epollCreate()
public static int epollWait(int efd, EpollEventArray events, int timeout) throws java.io.IOException
java.io.IOException
private static int epollWait0(int efd, long address, int len, int timeout)
public static void epollCtlAdd(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
private static int epollCtlAdd0(int efd, int fd, int flags)
public static void epollCtlMod(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
private static int epollCtlMod0(int efd, int fd, int flags)
public static void epollCtlDel(int efd, int fd) throws java.io.IOException
java.io.IOException
private static int epollCtlDel0(int efd, int fd)
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws java.io.IOException
java.io.IOException
private static int splice0(int fd, long offIn, int fdOut, long offOut, long len)
public static long sendfile(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
private static long sendfile0(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
public static int sendmmsg(int fd, NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws java.io.IOException
java.io.IOException
private static int sendmmsg0(int fd, NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len)
public static int recvFd(int fd) throws java.io.IOException
java.io.IOException
private static int recvFd0(int fd)
public static int sendFd(int socketFd, int fd) throws java.io.IOException
java.io.IOException
private static int sendFd0(int socketFd, int fd)
public static int isReuseAddress(int fd) throws java.io.IOException
java.io.IOException
public static int isReusePort(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpNotSentLowAt(int fd) throws java.io.IOException
java.io.IOException
public static int getTrafficClass(int fd) throws java.io.IOException
java.io.IOException
public static int isBroadcast(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepIdle(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepIntvl(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpKeepCnt(int fd) throws java.io.IOException
java.io.IOException
public static int getTcpUserTimeout(int milliseconds) throws java.io.IOException
java.io.IOException
public static int isIpFreeBind(int fd) throws java.io.IOException
java.io.IOException
public static void setReuseAddress(int fd, int reuseAddress) throws java.io.IOException
java.io.IOException
public static void setReusePort(int fd, int reuseAddress) throws java.io.IOException
java.io.IOException
public static void setTcpFastopen(int fd, int tcpFastopenBacklog) throws java.io.IOException
java.io.IOException
public static void setTcpNotSentLowAt(int fd, int tcpNotSentLowAt) throws java.io.IOException
java.io.IOException
public static void setTrafficClass(int fd, int tcpNoDelay) throws java.io.IOException
java.io.IOException
public static void setBroadcast(int fd, int broadcast) throws java.io.IOException
java.io.IOException
public static void setTcpKeepIdle(int fd, int seconds) throws java.io.IOException
java.io.IOException
public static void setTcpKeepIntvl(int fd, int seconds) throws java.io.IOException
java.io.IOException
public static void setTcpKeepCnt(int fd, int probes) throws java.io.IOException
java.io.IOException
public static void setTcpUserTimeout(int fd, int milliseconds) throws java.io.IOException
java.io.IOException
public static void setIpFreeBind(int fd, int freeBind) throws java.io.IOException
java.io.IOException
public static void tcpInfo(int fd, EpollTcpInfo info) throws java.io.IOException
java.io.IOException
private static void tcpInfo0(int fd, int[] array) throws java.io.IOException
java.io.IOException
public static void setTcpMd5Sig(int fd, java.net.InetAddress address, byte[] key) throws java.io.IOException
java.io.IOException
private static void setTcpMd5Sig0(int fd, byte[] address, int scopeId, byte[] key) throws java.io.IOException
java.io.IOException
public static int sizeofEpollEvent()
public static int offsetofEpollData()
private static void loadNativeLibrary()