Class DfsClientShmManager

java.lang.Object
org.apache.hadoop.hdfs.shortcircuit.DfsClientShmManager
All Implemented Interfaces:
Closeable, AutoCloseable

@Private public class DfsClientShmManager extends Object implements Closeable
Manages short-circuit memory segments for an HDFS client. Clients are responsible for requesting and releasing shared memory segments used for communicating with the DataNode. The client will try to allocate new slots in the set of existing segments, falling back to getting a new segment from the DataNode via DataTransferProtocol.requestShortCircuitFds(org.apache.hadoop.hdfs.protocol.ExtendedBlock, org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier>, org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm.SlotId, int, boolean). The counterpart to this class on the DataNode is ShortCircuitRegistry. See ShortCircuitRegistry for more information on the communication protocol.