HADOOP-14958. Fix source-level compatibility after HADOOP-11252. Contributed by Junping Du.

This commit is contained in:
Junping Du 2017-10-18 15:06:30 -07:00
parent 2523e1cce5
commit b016f08f67

View File

@ -212,7 +212,8 @@ synchronized ExecutorService unrefAndCleanup() {
* @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);
}
@ -223,7 +224,7 @@ static final void setPingInterval(Configuration conf, int pingInterval) {
* @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);
}