More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.sandStorm.lib.aSocket
Interface aSocketConst

All Known Implementing Classes:
aSocketRCTMSleep, aSocketThreadManager, SockState, WriteEventHandler, DatagramSockState

public interface aSocketConst

Internal constants used by the aSocket implementation.


Field Summary
static int EVENT_QUEUE_SPIN
          Number of times to spin on event queue
static int EVENT_QUEUE_TIMEOUT
          Time in ms to sleep waiting on event queue
static int LARGE_AGGREGATION
          Maximum aggregation constant for aSocketRCTM.
static java.lang.String LISTENSTAGE_NAME
           
static int MAX_ACCEPTS_AT_ONCE
          Maximum number of accepts to process at once
static int MAX_WRITE_LEN
          Maximum number of bytes to try writing at once; -1 if no limit
static int MAX_WRITE_REQS_PER_SOCKET
          Maximum number of write reqs on a socket to process at once
static int MAX_WRITES_AT_ONCE
          Maximum number of writes to process at once
static int MEASUREMENT_SIZE
          Number of measurements to use when adjusting rate in aSocketRCTM.
static boolean READ_BUFFER_COPY
          Indicates whether the reader should copy data into a new buffer
static int READ_BUFFER_SIZE
          The size of the internal read buffer in bytes
static java.lang.String READSTAGE_NAME
           
static int SELECT_SPIN
          Number of times to spin on select
static int SELECT_TIMEOUT
          Time in ms to sleep waiting for select
static int TRYWRITE_SPIN
          Number of times to try to finish a socket write
static int WRITE_MASK_DISABLE_THRESHOLD
          Number of empty writes after which write-ready mask is disabled.
static java.lang.String WRITESTAGE_NAME
           
 

Field Detail

READ_BUFFER_SIZE

public static final int READ_BUFFER_SIZE
The size of the internal read buffer in bytes

READ_BUFFER_COPY

public static final boolean READ_BUFFER_COPY
Indicates whether the reader should copy data into a new buffer

TRYWRITE_SPIN

public static final int TRYWRITE_SPIN
Number of times to try to finish a socket write

MAX_WRITE_LEN

public static final int MAX_WRITE_LEN
Maximum number of bytes to try writing at once; -1 if no limit

MAX_WRITE_REQS_PER_SOCKET

public static final int MAX_WRITE_REQS_PER_SOCKET
Maximum number of write reqs on a socket to process at once

MAX_WRITES_AT_ONCE

public static final int MAX_WRITES_AT_ONCE
Maximum number of writes to process at once

MAX_ACCEPTS_AT_ONCE

public static final int MAX_ACCEPTS_AT_ONCE
Maximum number of accepts to process at once

WRITE_MASK_DISABLE_THRESHOLD

public static final int WRITE_MASK_DISABLE_THRESHOLD
Number of empty writes after which write-ready mask is disabled. If set to -1, no disable will occur.

SELECT_TIMEOUT

public static final int SELECT_TIMEOUT
Time in ms to sleep waiting for select

SELECT_SPIN

public static final int SELECT_SPIN
Number of times to spin on select

EVENT_QUEUE_TIMEOUT

public static final int EVENT_QUEUE_TIMEOUT
Time in ms to sleep waiting on event queue

EVENT_QUEUE_SPIN

public static final int EVENT_QUEUE_SPIN
Number of times to spin on event queue

LARGE_AGGREGATION

public static final int LARGE_AGGREGATION
Maximum aggregation constant for aSocketRCTM.

MEASUREMENT_SIZE

public static final int MEASUREMENT_SIZE
Number of measurements to use when adjusting rate in aSocketRCTM.

READSTAGE_NAME

public static final java.lang.String READSTAGE_NAME

WRITESTAGE_NAME

public static final java.lang.String WRITESTAGE_NAME

LISTENSTAGE_NAME

public static final java.lang.String LISTENSTAGE_NAME

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/