Package org.jppf.io
Interface IO
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
InputSource,OutputDestination
- All Known Implementing Classes:
ChannelInputSource,ChannelOutputDestination,FileInputSource,FileOutputDestination,SocketWrapperInputSource,SocketWrapperOutputDestination,StreamInputSource,StreamOutputDestination
Super interface for all input source and output destination implementations.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhether to check for low memory and trigger disk offloading.static final byte[]A definition of an empty byte array.static final doubleRatio of free memory / requested allocation size threshold that triggers disk overflow.static final booleanWhether to trigger a garbage collection whenever disk overflow is triggered.static final AbstractBoundedObjectPoolQueue<byte[]>A bounded pool of temporary buffers for reading/writing lengths, geenrally from/to a stream.static final intSize of temporary buffer pool.static final longThe available heap threshold above which it is unlikely that memory fragmentation will cause object allocations to fail, i.e. when there is enough free memory but not enough contiguous free memory.static final intSize of send and receive buffer for socket connections.static final booleanEnable / disable keepalive.static final booleanDisable Nagle's algorithm to improve performance.static final AbstractBoundedObjectPoolQueue<byte[]>A bounded pool of temporary buffers.static final intSize of temporary buffer pool.static final intSize of temporary buffers (including direct buffers) used in I/O transfers. -
Method Summary
-
Field Details
-
SOCKET_BUFFER_SIZE
static final int SOCKET_BUFFER_SIZESize of send and receive buffer for socket connections. Defaults to 32768. -
SOCKET_TCP_NODELAY
static final boolean SOCKET_TCP_NODELAYDisable Nagle's algorithm to improve performance. Defaults to true. -
SOCKET_KEEPALIVE
static final boolean SOCKET_KEEPALIVEEnable / disable keepalive. Defaults to false. -
TEMP_BUFFER_SIZE
static final int TEMP_BUFFER_SIZESize of temporary buffers (including direct buffers) used in I/O transfers. Defaults to 32768. -
TEMP_BUFFER_POOL_SIZE
static final int TEMP_BUFFER_POOL_SIZESize of temporary buffer pool. Defaults to 10. -
LENGTH_BUFFER_POOL_SIZE
static final int LENGTH_BUFFER_POOL_SIZESize of temporary buffer pool. Defaults to 100. -
EMPTY_BYTES
static final byte[] EMPTY_BYTESA definition of an empty byte array. -
TEMP_BUFFER_POOL
A bounded pool of temporary buffers. -
LENGTH_BUFFER_POOL
A bounded pool of temporary buffers for reading/writing lengths, geenrally from/to a stream. -
FREE_MEM_TO_SIZE_RATIO
static final double FREE_MEM_TO_SIZE_RATIORatio of free memory / requested allocation size threshold that triggers disk overflow. -
GC_ON_DISK_OVERFLOW
static final boolean GC_ON_DISK_OVERFLOWWhether to trigger a garbage collection whenever disk overflow is triggered. -
LOW_MEMORY_THRESHOLD
static final long LOW_MEMORY_THRESHOLDThe available heap threshold above which it is unlikely that memory fragmentation will cause object allocations to fail, i.e. when there is enough free memory but not enough contiguous free memory. Default value is 32 MB. -
CHECK_LOW_MEMORY
static final boolean CHECK_LOW_MEMORYWhether to check for low memory and trigger disk offloading.
-