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

public interface IO extends Closeable
Super interface for all input source and output destination implementations.
Author:
Laurent Cohen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Whether to check for low memory and trigger disk offloading.
    static final byte[]
    A definition of an empty byte array.
    static final double
    Ratio of free memory / requested allocation size threshold that triggers disk overflow.
    static final boolean
    Whether 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 int
    Size of temporary buffer pool.
    static final long
    The 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 int
    Size of send and receive buffer for socket connections.
    static final boolean
    Enable / disable keepalive.
    static final boolean
    Disable Nagle's algorithm to improve performance.
    static final AbstractBoundedObjectPoolQueue<byte[]>
    A bounded pool of temporary buffers.
    static final int
    Size of temporary buffer pool.
    static final int
    Size of temporary buffers (including direct buffers) used in I/O transfers.
  • Method Summary

    Methods inherited from interface java.io.Closeable

    close
  • Field Details

    • SOCKET_BUFFER_SIZE

      static final int SOCKET_BUFFER_SIZE
      Size of send and receive buffer for socket connections. Defaults to 32768.
    • SOCKET_TCP_NODELAY

      static final boolean SOCKET_TCP_NODELAY
      Disable Nagle's algorithm to improve performance. Defaults to true.
    • SOCKET_KEEPALIVE

      static final boolean SOCKET_KEEPALIVE
      Enable / disable keepalive. Defaults to false.
    • TEMP_BUFFER_SIZE

      static final int TEMP_BUFFER_SIZE
      Size of temporary buffers (including direct buffers) used in I/O transfers. Defaults to 32768.
    • TEMP_BUFFER_POOL_SIZE

      static final int TEMP_BUFFER_POOL_SIZE
      Size of temporary buffer pool. Defaults to 10.
    • LENGTH_BUFFER_POOL_SIZE

      static final int LENGTH_BUFFER_POOL_SIZE
      Size of temporary buffer pool. Defaults to 100.
    • EMPTY_BYTES

      static final byte[] EMPTY_BYTES
      A definition of an empty byte array.
    • TEMP_BUFFER_POOL

      static final AbstractBoundedObjectPoolQueue<byte[]> TEMP_BUFFER_POOL
      A bounded pool of temporary buffers.
    • LENGTH_BUFFER_POOL

      static final AbstractBoundedObjectPoolQueue<byte[]> 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_RATIO
      Ratio of free memory / requested allocation size threshold that triggers disk overflow.
    • GC_ON_DISK_OVERFLOW

      static final boolean GC_ON_DISK_OVERFLOW
      Whether to trigger a garbage collection whenever disk overflow is triggered.
    • LOW_MEMORY_THRESHOLD

      static final long LOW_MEMORY_THRESHOLD
      The 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_MEMORY
      Whether to check for low memory and trigger disk offloading.