@Private
public class ClientContext
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static ClientContext |
get(java.lang.String name,
org.apache.hadoop.conf.Configuration config) |
|
static ClientContext |
get(java.lang.String name,
DfsClientConf conf,
org.apache.hadoop.conf.Configuration config) |
|
ByteArrayManager |
getByteArrayManager() |
|
java.lang.String |
getConfString() |
|
DeadNodeDetector |
getDeadNodeDetector() |
Obtain DeadNodeDetector of the current client.
|
boolean |
getDisableLegacyBlockReaderLocal() |
|
DomainSocketFactory |
getDomainSocketFactory() |
|
static ClientContext |
getFromConf(org.apache.hadoop.conf.Configuration conf) |
Get a client context, from a Configuration object.
|
KeyProviderCache |
getKeyProviderCache() |
|
LocatedBlocksRefresher |
getLocatedBlocksRefresher() |
Obtain LocatedBlocksRefresher of the current client.
|
int |
getNetworkDistance(DatanodeInfo datanodeInfo) |
|
PeerCache |
getPeerCache() |
|
ShortCircuitCache |
getShortCircuitCache() |
|
ShortCircuitCache |
getShortCircuitCache(long idx) |
|
boolean |
getUseLegacyBlockReaderLocal() |
|
boolean |
isDeadNodeDetectionEnabled() |
The switch to DeadNodeDetector.
|
boolean |
isLocatedBlocksRefresherEnabled() |
If true, LocatedBlocksRefresher will be periodically refreshing LocatedBlocks
of registered DFSInputStreams.
|
void |
setDisableLegacyBlockReaderLocal() |
public static ClientContext get(java.lang.String name, DfsClientConf conf, org.apache.hadoop.conf.Configuration config)
public static ClientContext get(java.lang.String name, org.apache.hadoop.conf.Configuration config)
@VisibleForTesting public static ClientContext getFromConf(org.apache.hadoop.conf.Configuration conf)
public java.lang.String getConfString()
public ShortCircuitCache getShortCircuitCache()
public ShortCircuitCache getShortCircuitCache(long idx)
public PeerCache getPeerCache()
public KeyProviderCache getKeyProviderCache()
public boolean getUseLegacyBlockReaderLocal()
public boolean getDisableLegacyBlockReaderLocal()
public void setDisableLegacyBlockReaderLocal()
public DomainSocketFactory getDomainSocketFactory()
public ByteArrayManager getByteArrayManager()
public int getNetworkDistance(DatanodeInfo datanodeInfo) throws java.io.IOException
java.io.IOExceptionpublic boolean isDeadNodeDetectionEnabled()
public DeadNodeDetector getDeadNodeDetector()
public boolean isLocatedBlocksRefresherEnabled()
public LocatedBlocksRefresher getLocatedBlocksRefresher()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.