You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ra...@apache.org on 2016/05/03 07:23:23 UTC
hbase git commit: HBASE-15607 Remove PB references from Admin for 2.0
(Ram)
Repository: hbase
Updated Branches:
refs/heads/branch-1 7e0e86072 -> 902b67316
HBASE-15607 Remove PB references from Admin for 2.0 (Ram)
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/902b6731
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/902b6731
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/902b6731
Branch: refs/heads/branch-1
Commit: 902b67316784d74f594eada82d56c11b0d1204a8
Parents: 7e0e860
Author: Ramkrishna <ra...@intel.com>
Authored: Tue May 3 10:52:59 2016 +0530
Committer: Ramkrishna <ra...@intel.com>
Committed: Tue May 3 10:52:59 2016 +0530
----------------------------------------------------------------------
.../main/java/org/apache/hadoop/hbase/client/Admin.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/902b6731/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
index 8fd855c..c8b91a9 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
@@ -1030,6 +1030,7 @@ public interface Admin extends Abortable, Closeable {
* @return the current compaction state
* @throws IOException if a remote or network exception occurs
*/
+ @Deprecated
AdminProtos.GetRegionInfoResponse.CompactionState getCompactionStateForRegion(
final byte[] regionName) throws IOException;
@@ -1109,6 +1110,7 @@ public interface Admin extends Abortable, Closeable {
* @throws SnapshotCreationException if snapshot creation failed
* @throws IllegalArgumentException if the snapshot request is formatted incorrectly
*/
+ @Deprecated
void snapshot(final String snapshotName,
final TableName tableName,
HBaseProtos.SnapshotDescription.Type type) throws IOException, SnapshotCreationException,
@@ -1132,6 +1134,7 @@ public interface Admin extends Abortable, Closeable {
* @throws SnapshotCreationException if snapshot failed to be taken
* @throws IllegalArgumentException if the snapshot request is formatted incorrectly
*/
+ @Deprecated
void snapshot(HBaseProtos.SnapshotDescription snapshot)
throws IOException, SnapshotCreationException, IllegalArgumentException;
@@ -1145,6 +1148,7 @@ public interface Admin extends Abortable, Closeable {
* @throws SnapshotCreationException if snapshot creation failed
* @throws IllegalArgumentException if the snapshot request is formatted incorrectly
*/
+ @Deprecated
MasterProtos.SnapshotResponse takeSnapshotAsync(HBaseProtos.SnapshotDescription snapshot)
throws IOException, SnapshotCreationException;
@@ -1164,6 +1168,7 @@ public interface Admin extends Abortable, Closeable {
* @throws org.apache.hadoop.hbase.snapshot.UnknownSnapshotException if the requested snapshot is
* unknown
*/
+ @Deprecated
boolean isSnapshotFinished(final HBaseProtos.SnapshotDescription snapshot)
throws IOException, HBaseSnapshotException, UnknownSnapshotException;
@@ -1303,6 +1308,7 @@ public interface Admin extends Abortable, Closeable {
* @return a list of snapshot descriptors for completed snapshots
* @throws IOException if a network error occurs
*/
+ @Deprecated
List<HBaseProtos.SnapshotDescription> listSnapshots() throws IOException;
/**
@@ -1312,6 +1318,7 @@ public interface Admin extends Abortable, Closeable {
* @return - returns a List of SnapshotDescription
* @throws IOException if a remote or network exception occurs
*/
+ @Deprecated
List<HBaseProtos.SnapshotDescription> listSnapshots(String regex) throws IOException;
/**
@@ -1321,6 +1328,7 @@ public interface Admin extends Abortable, Closeable {
* @return - returns a List of SnapshotDescription
* @throws IOException if a remote or network exception occurs
*/
+ @Deprecated
List<HBaseProtos.SnapshotDescription> listSnapshots(Pattern pattern) throws IOException;
/**
@@ -1331,6 +1339,7 @@ public interface Admin extends Abortable, Closeable {
* @return - returns a List of completed SnapshotDescription
* @throws IOException if a remote or network exception occurs
*/
+ @Deprecated
List<HBaseProtos.SnapshotDescription> listTableSnapshots(String tableNameRegex,
String snapshotNameRegex) throws IOException;
@@ -1342,6 +1351,7 @@ public interface Admin extends Abortable, Closeable {
* @return - returns a List of completed SnapshotDescription
* @throws IOException if a remote or network exception occurs
*/
+ @Deprecated
List<HBaseProtos.SnapshotDescription> listTableSnapshots(Pattern tableNamePattern,
Pattern snapshotNamePattern) throws IOException;