hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [6/6] hbase git commit: HBASE-15755 SnapshotDescriptionUtils and SnapshotTestingUtils do not have any Interface audience marked
Date Thu, 05 May 2016 14:58:48 GMT
HBASE-15755 SnapshotDescriptionUtils and SnapshotTestingUtils do not have any Interface audience
marked


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/640f85a4
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/640f85a4
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/640f85a4

Branch: refs/heads/0.98
Commit: 640f85a43a458afb19b2eb059eed61e97d788475
Parents: 7564bf3
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Thu May 5 07:24:29 2016 -0700
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Thu May 5 07:43:20 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/snapshot/SnapshotDescriptionUtils.java      | 5 +++--
 .../apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java   | 8 +++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/640f85a4/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java
index b7b6239..fc5037a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java
@@ -29,7 +29,7 @@ import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.fs.permission.FsPermission;
 import org.apache.hadoop.hbase.HConstants;
-import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos;
+import org.apache.hadoop.hbase.classification.InterfaceAudience;
 import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
 import org.apache.hadoop.hbase.snapshot.SnapshotManifestV1;
 import org.apache.hadoop.hbase.snapshot.SnapshotManifestV2;
@@ -72,7 +72,8 @@ import org.apache.hadoop.hbase.util.FSUtils;
  * {@link #completeSnapshot}, and writing the
  * {@link SnapshotDescription} to the working snapshot directory.
  */
-public class SnapshotDescriptionUtils {
+@InterfaceAudience.Private
+public final class SnapshotDescriptionUtils {
 
   /**
    * Filter that only accepts completed snapshot directories

http://git-wip-us.apache.org/repos/asf/hbase/blob/640f85a4/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java
index 0599b17..d1b7ba7 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/SnapshotTestingUtils.java
@@ -49,6 +49,7 @@ import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.TableName;
 import org.apache.hadoop.hbase.TableNotEnabledException;
 import org.apache.hadoop.hbase.Waiter;
+import org.apache.hadoop.hbase.classification.InterfaceAudience;
 import org.apache.hadoop.hbase.client.Durability;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTable;
@@ -79,11 +80,16 @@ import com.google.protobuf.ServiceException;
 /**
  * Utilities class for snapshots
  */
-public class SnapshotTestingUtils {
+@InterfaceAudience.Private
+public final class SnapshotTestingUtils {
 
   private static final Log LOG = LogFactory.getLog(SnapshotTestingUtils.class);
   private static byte[] KEYS = Bytes.toBytes("0123456789");
 
+  private SnapshotTestingUtils() {
+    // private constructor for utility class
+  }
+
   /**
    * Assert that we don't have any snapshots lists
    *


Mime
View raw message