congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DNConf.getSocketTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
getSocketTimeout
method
in
org.apache.hadoop.hdfs.server.datanode.DNConf

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.DNConf.getSocketTimeout (Showing top 2 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

private Peer newConnectedPeer(ExtendedBlock b, InetSocketAddress addr,
               Token<BlockTokenIdentifier> blockToken,
               DatanodeID datanodeId)
  throws IOException {
 Peer peer = null;
 boolean success = false;
 Socket sock = null;
 final int socketTimeout = datanode.getDnConf().getSocketTimeout();
 try {
  sock = NetUtils.getDefaultSocketFactory(conf).createSocket();
  NetUtils.connect(sock, addr, socketTimeout);
  peer = DFSUtilClient.peerFromSocketAndKey(datanode.getSaslClient(),
    sock, datanode.getDataEncryptionKeyFactoryForBlock(b),
    blockToken, datanodeId, socketTimeout);
  success = true;
  return peer;
 } finally {
  if (!success) {
   IOUtils.cleanup(null, peer);
   IOUtils.closeSocket(sock);
  }
 }
}
origin: org.apache.hadoop/hadoop-hdfs

socket = datanode.newSocket();
NetUtils.connect(socket, targetAddr,
  datanode.getDnConf().getSocketTimeout());
socket.setTcpNoDelay(
  datanode.getDnConf().getDataTransferServerTcpNoDelay());
socket.setSoTimeout(datanode.getDnConf().getSocketTimeout());
org.apache.hadoop.hdfs.server.datanodeDNConfgetSocketTimeout

Javadoc

Returns socket timeout

Popular methods of DNConf

  • <init>
  • getMinimumNameNodeVersion
  • getBpReadyTimeout
  • getConf
    Returns the configuration.
  • getEncryptDataTransfer
    Returns true if encryption enabled for DataTransferProtocol.
  • getEncryptionAlgorithm
    Returns encryption algorithm configured for DataTransferProtocol, or null if not configured.
  • getIgnoreSecurePortsForTesting
    Returns true if configuration is set to skip checking for proper port configuration in a secured clu
  • getMaxLockedMemory
  • getSaslPropsResolver
    Returns the SaslPropertiesResolver configured for use with DataTransferProtocol, or null if not conf
  • getTrustedChannelResolver
    Returns the TrustedChannelResolver configured for use with DataTransferProtocol, or null if not conf
  • getXceiverStopTimeout
  • getTransferSocketRecvBufferSize
  • getXceiverStopTimeout,
  • getTransferSocketRecvBufferSize,
  • getTransferSocketSendBufferSize,
  • getAllowNonLocalLazyPersist,
  • getConnectToDnViaHostname,
  • getDataTransferServerTcpNoDelay,
  • getLifelineIntervalMs,
  • getMaxDataLength,
  • getSlowIoWarningThresholdMs

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now