HDFS-2412. Add backwards-compatibility layer for renamed FSConstants class. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1180202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-10-07 20:28:39 +00:00
parent 68d1162f7a
commit 54e81464a3
3 changed files with 33 additions and 3 deletions

View File

@ -1122,6 +1122,9 @@ Release 0.23.0 - Unreleased
HDFS-2323. start-dfs.sh script fails for tarball install (tomwhite)
HDFS-2412. Add backwards-compatibility layer for renamed FSConstants
class (todd)
BREAKDOWN OF HDFS-1073 SUBTASKS
HDFS-1521. Persist transaction ID on disk between NN restarts.

View File

@ -0,0 +1,27 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hdfs.protocol;
/**
* @deprecated Please use {@link HdfsConstants}. This class
* is left only for other ecosystem projects which depended on
* it for SafemodeAction and DatanodeReport types.
*/
@Deprecated
public abstract class FSConstants extends HdfsConstants {
}

View File

@ -26,9 +26,9 @@ import org.apache.hadoop.hdfs.HdfsConfiguration;
*
************************************/
@InterfaceAudience.Private
public final class HdfsConstants {
public class HdfsConstants {
/* Hidden constructor */
private HdfsConstants() {
protected HdfsConstants() {
}
/**
@ -72,7 +72,7 @@ public final class HdfsConstants {
public static final int BYTES_IN_INTEGER = Integer.SIZE / Byte.SIZE;
// SafeMode actions
public enum SafeModeAction {
public static enum SafeModeAction {
SAFEMODE_LEAVE, SAFEMODE_ENTER, SAFEMODE_GET;
}