Example usage for org.apache.hadoop.fs FsServerDefaults getEncryptDataTransfer

List of usage examples for org.apache.hadoop.fs FsServerDefaults getEncryptDataTransfer

Introduction

In this page you can find the example usage for org.apache.hadoop.fs FsServerDefaults getEncryptDataTransfer.

Prototype

public boolean getEncryptDataTransfer() 

Source Link

Usage

From source file:com.mellanox.r4h.DFSClient.java

License:Apache License

/**
 * @return true if data sent between this client and DNs should be encrypted,
 *         false otherwise.//from   w w  w  .j  av a  2  s.com
 * @throws IOException
 *             in the event of error communicating with the NN
 */
boolean shouldEncryptData() throws IOException {
    FsServerDefaults d = getServerDefaults();
    return d == null ? false : d.getEncryptDataTransfer();
}