Example usage for org.apache.hadoop.hdfs.server.namenode NameNodeAdapter setLeasePeriod

List of usage examples for org.apache.hadoop.hdfs.server.namenode NameNodeAdapter setLeasePeriod

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.namenode NameNodeAdapter setLeasePeriod.

Prototype

public static void setLeasePeriod(final FSNamesystem namesystem, long soft, long hard) 

Source Link

Document

Set the softLimit and hardLimit of client lease periods.

Usage

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

License:Apache License

/**
 * Set the softLimit and hardLimit of client lease periods
 *///from  ww  w.  java2 s  .  c  o m
public void setLeasePeriod(long soft, long hard) {
    NameNodeAdapter.setLeasePeriod(getNamesystem(), soft, hard);
}

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

License:Apache License

public void setLeasePeriod(long soft, long hard, int nnIndex) {
    NameNodeAdapter.setLeasePeriod(getNamesystem(nnIndex), soft, hard);
}