java.io.Closeable, java.lang.AutoCloseable@Private
public class DfsClientShmManager
extends java.lang.Object
implements java.io.Closeable
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.| Modifier and Type | Class | Description |
|---|---|---|
static class |
DfsClientShmManager.PerDatanodeVisitorInfo |
|
static interface |
DfsClientShmManager.Visitor |
| Modifier and Type | Method | Description |
|---|---|---|
ShortCircuitShm.Slot |
allocSlot(DatanodeInfo datanode,
DomainPeer peer,
org.apache.commons.lang3.mutable.MutableBoolean usedPeer,
ExtendedBlockId blockId,
java.lang.String clientName) |
|
void |
close() |
Close the DfsClientShmManager.
|
void |
freeSlot(ShortCircuitShm.Slot slot) |
|
org.apache.hadoop.net.unix.DomainSocketWatcher |
getDomainSocketWatcher() |
|
int |
getShmNum() |
|
java.lang.String |
toString() |
|
void |
visit(DfsClientShmManager.Visitor visitor) |
public ShortCircuitShm.Slot allocSlot(DatanodeInfo datanode, DomainPeer peer, org.apache.commons.lang3.mutable.MutableBoolean usedPeer, ExtendedBlockId blockId, java.lang.String clientName) throws java.io.IOException
java.io.IOExceptionpublic void freeSlot(ShortCircuitShm.Slot slot)
@VisibleForTesting public void visit(DfsClientShmManager.Visitor visitor) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object@VisibleForTesting public org.apache.hadoop.net.unix.DomainSocketWatcher getDomainSocketWatcher()
@VisibleForTesting public int getShmNum()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.