final class DevPollSocketMuxer extends ServerSocketMuxer
SocketMuxer.SingletonMaker, SocketMuxer.TimerListenerImpl
Modifier and Type | Field and Description |
---|---|
private static boolean |
debug |
(package private) static byte |
FD_ADD |
(package private) static byte |
FD_REM |
private int |
maxNumberOfFds |
private java.lang.Object |
pollLock |
private java.lang.Object |
pollSetLock |
private DevPollSocketInfo[] |
sockRecords |
DELAYPOLLWAKEUP, rdrThreads, SOCKET_READERS_QUEUE_NAME, sockets
Constructor and Description |
---|
DevPollSocketMuxer() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelIo(weblogic.socket.MuxableSocket ms) |
(package private) void |
cleanupSocket(weblogic.socket.MuxableSocket ms,
weblogic.socket.SocketInfo info)
Performs cleanup for muxable socket, which is only done once for
each muxable socket.
|
private static int[][] |
doPoll()
Initiate poll.
|
(package private) static void |
editPollSet(int fd,
byte code)
Add/Remove interest in a FD.
|
private static java.lang.String |
getBuildTime() |
private static int |
initDevPoll()
Initialize the /dev/poll device.
|
private static void |
p(java.lang.String s) |
protected void |
processSockets()
The main method in the SocketMuxer where the reading occurs.
|
void |
read(java.util.Collection<weblogic.socket.MuxableSocket> muxableSockets) |
void |
read(weblogic.socket.MuxableSocket ms)
Attempts to read data for a MuxableSocket that has been
registered.
|
void |
register(java.util.Collection<weblogic.socket.MuxableSocket> muxableSockets) |
void |
register(weblogic.socket.MuxableSocket ms)
Register a MuxableSocket, but do not begin IO.
|
getMuxer, newSDPServerSocket, newServerSocket
closeSocket, closeSocket, completeIO, createTimeoutTrigger, deliverEndOfStream, deliverHasException, finishExceptionHandling, getNumberOfReaders, getNumSockets, getSockets, getSocketsIterator, handleReadTimeout, initiateIO, initSocket, initSocket, initSocketMuxerOnServer, initSocketReaderThreads, initThreadCount, internalWrite, isAsyncMuxer, isAvailable, newClientSocket, newClientSocket, newClientSocket, newProxySocket, newSDPSocket, newSocket, newSocket, newSocket, newSSLClientSocket, newSSLClientSocket, newSSLClientSocket, newWeblogicSocket, readCompleted, readFromSocket, readReadySocket, reRegister, startSocketReaderThreads, write
private final DevPollSocketInfo[] sockRecords
private final int maxNumberOfFds
private final java.lang.Object pollLock
private final java.lang.Object pollSetLock
private static final boolean debug
static final byte FD_ADD
static final byte FD_REM
public DevPollSocketMuxer() throws java.io.IOException
java.io.IOException
public void register(weblogic.socket.MuxableSocket ms) throws java.io.IOException
SocketMuxer
register
in class SocketMuxer
java.io.IOException
MuxableSocket
public void register(java.util.Collection<weblogic.socket.MuxableSocket> muxableSockets)
register
in class SocketMuxer
public void read(java.util.Collection<weblogic.socket.MuxableSocket> muxableSockets)
read
in class SocketMuxer
public void read(weblogic.socket.MuxableSocket ms)
SocketMuxer
read
in class SocketMuxer
ExecuteThread
,
MuxableSocket
,
SocketResetException
protected void processSockets()
SocketMuxer
processSockets
in class SocketMuxer
Kernel
,
KernelMBean
,
SocketReaderRequest
void cleanupSocket(weblogic.socket.MuxableSocket ms, weblogic.socket.SocketInfo info)
SocketMuxer
cleanupSocket
in class SocketMuxer
private static void p(java.lang.String s)
protected void cancelIo(weblogic.socket.MuxableSocket ms)
cancelIo
in class SocketMuxer
private static int initDevPoll() throws java.io.IOException
java.io.IOException
- on errorprivate static int[][] doPoll() throws java.io.IOException
java.io.IOException
- on errorstatic void editPollSet(int fd, byte code) throws java.io.IOException
java.io.IOException
- on errorprivate static java.lang.String getBuildTime()