HADOOP-14958. Fix source-level compatibility after HADOOP-11252. Contributed by Junping Du.
(cherry picked from commitb016f08f67
) (cherry picked from commit9433f9eb09
)
This commit is contained in:
parent
0aa1b62b39
commit
e7e2b8158d
|
@ -214,7 +214,8 @@ public class Client implements AutoCloseable {
|
|||
* @param conf Configuration
|
||||
* @param pingInterval the ping interval
|
||||
*/
|
||||
static final void setPingInterval(Configuration conf, int pingInterval) {
|
||||
public static final void setPingInterval(Configuration conf,
|
||||
int pingInterval) {
|
||||
conf.setInt(CommonConfigurationKeys.IPC_PING_INTERVAL_KEY, pingInterval);
|
||||
}
|
||||
|
||||
|
@ -225,7 +226,7 @@ public class Client implements AutoCloseable {
|
|||
* @param conf Configuration
|
||||
* @return the ping interval
|
||||
*/
|
||||
static final int getPingInterval(Configuration conf) {
|
||||
public static final int getPingInterval(Configuration conf) {
|
||||
return conf.getInt(CommonConfigurationKeys.IPC_PING_INTERVAL_KEY,
|
||||
CommonConfigurationKeys.IPC_PING_INTERVAL_DEFAULT);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue