package util
Type Members
- abstract class AbstractFileRegion extends AbstractReferenceCounted with FileRegion
- class ByteArrayReadableChannel extends ReadableByteChannel
- class ByteArrayWritableChannel extends WritableByteChannel
A writable channel that stores the written data in a byte array in memory.
- sealed abstract final class ByteUnit extends Enum[ByteUnit]
- abstract class ConfigProvider extends AnyRef
Provides a mechanism for constructing a
TransportConfusing some sort of configuration. - class CryptoUtils extends AnyRef
Utility methods related to the commons-crypto library.
- sealed abstract final class IOMode extends Enum[IOMode]
Selector for which form of low-level IO we should use.
Selector for which form of low-level IO we should use. NIO is always available, while EPOLL is only available on Linux. AUTO is used to select EPOLL if it's available, or NIO otherwise.
- class JavaUtils extends AnyRef
General utilities available in the network package.
General utilities available in the network package. Many of these are sourced from Spark's own Utils, just accessible within this package.
- class LevelDBProvider extends AnyRef
LevelDB utility class available in the network package.
- final class LimitedInputStream extends FilterInputStream
Wraps a
InputStream, limiting the number of bytes which can be read.Wraps a
InputStream, limiting the number of bytes which can be read.This code is from Guava's 14.0 source code, because there is no compatible way to use this functionality in both a Guava 11 environment and a Guava >14 environment.
- class MapConfigProvider extends ConfigProvider
ConfigProvider based on a Map (copied in the constructor).
- class NettyLogger extends AnyRef
- class NettyMemoryMetrics extends MetricSet
A Netty memory metrics class to collect metrics from Netty PooledByteBufAllocator.
- class NettyUtils extends AnyRef
Utilities for creating various Netty constructs based on whether we're using EPOLL or NIO.
- class TimerWithCustomTimeUnit extends Timer
A custom version of a
Timerwhich allows for specifying a specificTimeUnitto be used when accessing timing values via#getSnapshot().A custom version of a
Timerwhich allows for specifying a specificTimeUnitto be used when accessing timing values via#getSnapshot(). Normally, though theTimeUnit)method requires a unit, the extraction methods on the snapshot do not specify a unit, and always return nanoseconds. It can be useful to specify that a timer should use a different unit for its snapshot. Note that internally, all values are still stored with nanosecond-precision; it is only before being returned to the caller that the nanosecond value is converted to the custom time unit. - class TransportConf extends AnyRef
A central location that tracks all the settings we expose to users.
- class TransportFrameDecoder extends ChannelInboundHandlerAdapter
A customized frame decoder that allows intercepting raw data.
A customized frame decoder that allows intercepting raw data.
This behaves like Netty's frame decoder (with hard coded parameters that match this library's needs), except it allows an interceptor to be installed to read data directly before it's framed.
Unlike Netty's frame decoder, each frame is dispatched to child handlers as soon as it's decoded, instead of building as many frames as the current buffer allows and dispatching all of them. This allows a child handler to install an interceptor if needed.
If an interceptor is installed, framing stops, and data is instead fed directly to the interceptor. When the interceptor indicates that it doesn't need to read any more data, framing resumes. Interceptors should not hold references to the data buffers provided to their handle() method.