org.apache.hbase
hbase-common
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/Abortable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/Abortable.java
similarity index 82%
rename from hbase-common/src/main/java/org/apache/hadoop/hbase/Abortable.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/Abortable.java
index 52e9c691c9e5..8233071bc3fd 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/Abortable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/Abortable.java
@@ -1,5 +1,6 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
+/**
+ *
+ * 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
@@ -22,8 +23,10 @@
/**
* Interface to support the aborting of a given server or client.
*
- * This is used primarily when we could get an unexpected and fatal exception; abort is called to
- * exit the hosting process.
+ * This is used primarily for ZooKeeper usage when we could get an unexpected
+ * and fatal exception, requiring an abort.
+ *
+ * Implemented by the Master, RegionServer, and TableServers (client).
*/
@InterfaceAudience.Private
public interface Abortable {
diff --git a/hbase-coprocessor/src/main/java/org/apache/hadoop/hbase/Coprocessor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/Coprocessor.java
similarity index 96%
rename from hbase-coprocessor/src/main/java/org/apache/hadoop/hbase/Coprocessor.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/Coprocessor.java
index ea6ad93e485c..c0d9b603a8ab 100644
--- a/hbase-coprocessor/src/main/java/org/apache/hadoop/hbase/Coprocessor.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/Coprocessor.java
@@ -18,9 +18,11 @@
*/
package org.apache.hadoop.hbase;
-import com.google.protobuf.Service;
+
import java.io.IOException;
import java.util.Collections;
+
+import com.google.protobuf.Service;
import org.apache.yetus.audience.InterfaceAudience;
import org.apache.yetus.audience.InterfaceStability;
@@ -95,8 +97,8 @@ default void stop(CoprocessorEnvironment env) throws IOException {}
/**
* Coprocessor endpoints providing protobuf services should override this method.
- * @return Iterable of {@link Service}s or empty collection; implementations should not return
- * null.
+ * @return Iterable of {@link Service}s or empty collection. Implementations should never
+ * return null.
*/
default Iterable getServices() {
return Collections.EMPTY_SET;
diff --git a/hbase-coprocessor/src/main/java/org/apache/hadoop/hbase/CoprocessorEnvironment.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/CoprocessorEnvironment.java
similarity index 100%
rename from hbase-coprocessor/src/main/java/org/apache/hadoop/hbase/CoprocessorEnvironment.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/CoprocessorEnvironment.java
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java
similarity index 93%
rename from hbase-common/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java
index ae9f2ad805b4..509844e367d8 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/DoNotRetryIOException.java
@@ -1,4 +1,5 @@
-/*
+/**
+ *
* 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
@@ -20,7 +21,8 @@
import org.apache.yetus.audience.InterfaceAudience;
/**
- * Subclass if exception is not meant to be retried.
+ * Subclass if exception is not meant to be retried: e.g.
+ * {@link org.apache.hadoop.hbase.UnknownScannerException}
*/
@InterfaceAudience.Public
public class DoNotRetryIOException extends HBaseIOException {
diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/BigDecimalColumnInterpreter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/BigDecimalColumnInterpreter.java
similarity index 100%
rename from hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/BigDecimalColumnInterpreter.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/BigDecimalColumnInterpreter.java
diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java
similarity index 100%
rename from hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java
diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java
similarity index 100%
rename from hbase-endpoint/src/main/java/org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java
diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/ColumnInterpreter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/coprocessor/ColumnInterpreter.java
similarity index 100%
rename from hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/ColumnInterpreter.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/coprocessor/ColumnInterpreter.java
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java
similarity index 88%
rename from hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java
rename to hbase-client/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java
index 99484a22846b..7b1ac43c4bfb 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorException.java
@@ -1,4 +1,5 @@
-/*
+/**
+ *
* 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
@@ -25,6 +26,8 @@
*/
@InterfaceAudience.Public
public class CoprocessorException extends DoNotRetryIOException {
+ private static final long serialVersionUID = 4357922136679804887L;
+
/** Default Constructor */
public CoprocessorException() {
super();
@@ -32,15 +35,19 @@ public CoprocessorException() {
/**
* Constructor with a Class object and exception message.
+ * @param clazz
+ * @param s
*/
public CoprocessorException(Class> clazz, String s) {
- super("Coprocessor [" + clazz.getName() + "]: " + s);
+ super( "Coprocessor [" + clazz.getName() + "]: " + s);
}
/**
* Constructs the exception and supplies a string as the message
+ * @param s - message
*/
public CoprocessorException(String s) {
super(s);
}
+
}
diff --git a/hbase-coprocessor/pom.xml b/hbase-coprocessor/pom.xml
deleted file mode 100644
index 0bcfcef25d41..000000000000
--- a/hbase-coprocessor/pom.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
- 4.0.0
-
- hbase-build-configuration
- org.apache.hbase
- 2.5.0-SNAPSHOT
- ../hbase-build-configuration
-
-
- hbase-coprocessor
- Apache HBase - Coprocessor
- Base Coprocessor Types
-
-
-
-
- src/test/resources
-
- log4j.properties
-
-
-
-
-
-
- maven-assembly-plugin
-
- true
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
-
-
- net.revelc.code
- warbucks-maven-plugin
-
-
-
-
-
-
- org.apache.hbase
- hbase-annotations
- test-jar
- test
-
-
- org.slf4j
- slf4j-api
-
-
- junit
- junit
- test
-
-
- org.slf4j
- slf4j-log4j12
- test
-
-
- log4j
- log4j
- provided
-
-
- org.apache.hbase
- hbase-common
-
-
- org.apache.hbase
- hbase-common
- test-jar
- test
-
-
-
diff --git a/hbase-server/pom.xml b/hbase-server/pom.xml
index 93051e0745f5..48a9fbcd36e3 100644
--- a/hbase-server/pom.xml
+++ b/hbase-server/pom.xml
@@ -256,10 +256,6 @@
org.apache.hbase
hbase-common
-