HBASE-18687 Add @since 2.0.0 to new classes

This commit is contained in:
Michael Stack 2017-08-25 13:12:20 -07:00
parent 3bc64dac95
commit 20d272bce5
34 changed files with 41 additions and 1 deletions

View File

@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.util.Pair;
/**
* The asynchronous meta table accessor. Used to read/write region and assignment information store
* in <code>hbase:meta</code>.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class AsyncMetaTableAccessor {

View File

@ -52,6 +52,7 @@ import com.google.protobuf.RpcChannel;
* <p>
* This feature is still under development, so marked as IA.Private. Will change to public when
* done. Use it with caution.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncAdmin {

View File

@ -27,6 +27,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
* For creating {@link AsyncAdmin}. The implementation should have default configurations set before
* returning the builder to user. So users are free to only set the configs they care about to
* create a new AsyncAdmin instance.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncAdminBuilder {

View File

@ -26,6 +26,9 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.ipc.HBaseRpcController;
import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;
/**
* @since 2.0.0
*/
@InterfaceAudience.Private
public class AsyncAdminRequestRetryingCaller<T> extends AsyncRpcRetryingCaller<T> {

View File

@ -26,6 +26,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* The asynchronous version of Connection.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncConnection extends Closeable {

View File

@ -58,6 +58,7 @@ import com.google.protobuf.RpcChannel;
/**
* The implementation of AsyncAdmin.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class AsyncHBaseAdmin implements AsyncAdmin {

View File

@ -27,6 +27,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterServ
/**
* Retry caller for a request call to master.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class AsyncMasterRequestRpcRetryingCaller<T> extends AsyncRpcRetryingCaller<T> {

View File

@ -28,7 +28,8 @@ import java.util.List;
* 1) If AsyncProcess is set to track errors globally, and not per call (for HTable puts),
* then errors and failed operations in this object will reflect global errors.
* 2) If submit call is made with needResults false, results will not be saved.
* */
* @since 2.0.0
*/
@InterfaceAudience.Private
public interface AsyncRequestFuture {
public boolean hasError();

View File

@ -38,6 +38,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRespon
/**
* Factory to create an AsyncRpcRetryCaller.
* @since 2.0.0
*/
@InterfaceAudience.Private
class AsyncRpcRetryingCallerFactory {

View File

@ -27,6 +27,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
* The implementation should make sure that user can do everything they want to the returned
* {@code CompletableFuture} without breaking anything. Usually the implementation will require user
* to provide a {@code ExecutorService}.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncTable extends AsyncTableBase {

View File

@ -41,6 +41,7 @@ import org.apache.hadoop.hbase.util.Bytes;
* <p>
* Usually the implementation will not throw any exception directly. You need to get the exception
* from the returned {@link CompletableFuture}.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncTableBase {

View File

@ -29,6 +29,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
* The implementation should have default configurations set before returning the builder to user.
* So users are free to only set the configs they care about to create a new
* AsyncTable/RawAsyncTable instance.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncTableBuilder<T extends AsyncTableBase> {

View File

@ -28,6 +28,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
* <p>
* Usually the implementations will not throw any exception directly, you need to get the exception
* from the returned {@link CompletableFuture}.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface AsyncTableRegionLocator {

View File

@ -36,6 +36,7 @@ import org.apache.hadoop.hbase.util.Bytes;
* <p>
* If user setBatch(5) and rpc returns 3+5+5+5+3 cells, we should return 5+5+5+5+1 to user. setBatch
* doesn't mean setAllowPartialResult(true).
* @since 2.0.0
*/
@InterfaceAudience.Private
public class BatchScanResultCache implements ScanResultCache {

View File

@ -34,6 +34,7 @@ import org.apache.hadoop.hbase.util.Bytes;
* It is used as input when creating a table or adding a column.
*
* To construct a new instance, use the {@link ColumnFamilyDescriptorBuilder} methods
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface ColumnFamilyDescriptor {

View File

@ -41,6 +41,9 @@ import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.PrettyPrinter;
import org.apache.hadoop.hbase.util.PrettyPrinter.Unit;
/**
* @since 2.0.0
*/
@InterfaceAudience.Public
public class ColumnFamilyDescriptorBuilder {
// For future backward compatibility

View File

@ -255,6 +255,7 @@ import org.apache.hadoop.hbase.util.Pair;
/**
* The implementation of AsyncAdmin.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class RawAsyncHBaseAdmin implements AsyncAdmin {

View File

@ -44,6 +44,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
* method. The {@link RawScanResultConsumer} exposes the implementation details of a scan(heartbeat)
* so it is not suitable for a normal user. If it is still the only difference after we implement
* most features of AsyncTable, we can think about merge these two interfaces.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface RawAsyncTable extends AsyncTableBase {

View File

@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.client.metrics.ScanMetrics;
* HBase in background while you process the returned data, you need to move the processing work to
* another thread to make the {@code onNext} call return immediately. And please do NOT do any time
* consuming tasks in all methods below unless you know what you are doing.
* @since 2.0.0
*/
@InterfaceAudience.Public
public interface RawScanResultConsumer {

View File

@ -47,6 +47,9 @@ import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos;
import org.apache.hadoop.hbase.util.Bytes;
/**
* @since 2.0.0
*/
@InterfaceAudience.Public
public class TableDescriptorBuilder {
public static final Log LOG = LogFactory.getLog(TableDescriptorBuilder.class);

View File

@ -35,6 +35,7 @@ import org.apache.hadoop.hbase.util.Pair;
/**
* Netty client for the requests and responses.
* @since 2.0.0
*/
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.CONFIG)
public class NettyRpcClient extends AbstractRpcClient<NettyRpcConnection> {

View File

@ -36,6 +36,7 @@ import org.apache.hadoop.hbase.util.Pair;
* As hadoop Configuration can not pass an Object directly, we need to find a way to pass the
* EventLoopGroup to {@code AsyncRpcClient} if we want to use a single {@code EventLoopGroup} for
* the whole process.
* @since 2.0.0
*/
@InterfaceAudience.Public
public class NettyRpcClientConfigHelper {

View File

@ -65,6 +65,7 @@ import org.apache.hadoop.security.UserGroupInformation;
* <p>
* Most operations are executed in handlers. Netty handler is always executed in the same
* thread(EventLoop) so no lock is needed.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyRpcConnection extends RpcConnection {

View File

@ -48,6 +48,7 @@ import org.apache.hadoop.ipc.RemoteException;
/**
* The netty rpc handler.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyRpcDuplexHandler extends ChannelDuplexHandler {

View File

@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos;
/**
* Implement logic to deal with the rpc connection header.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class NettyHBaseRpcConnectionHeaderHandler extends SimpleChannelInboundHandler<ByteBuf> {

View File

@ -32,6 +32,7 @@ import org.apache.hadoop.security.token.TokenIdentifier;
/**
* Implement SASL logic for netty rpc client.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class NettyHBaseSaslRpcClient extends AbstractHBaseSaslRpcClient {

View File

@ -36,6 +36,7 @@ import org.apache.hadoop.security.token.TokenIdentifier;
/**
* Implement SASL logic for netty rpc client.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class NettyHBaseSaslRpcClientHandler extends SimpleChannelInboundHandler<ByteBuf> {

View File

@ -57,6 +57,7 @@ import org.apache.hadoop.security.authorize.ServiceAuthorizationManager;
/**
* An RPC server with Netty4 implementation.
* @since 2.0.0
*/
@InterfaceAudience.Private
public class NettyRpcServer extends RpcServer {

View File

@ -28,6 +28,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* Handle connection preamble.
* @since 2.0.0`
*/
@InterfaceAudience.Private
class NettyRpcServerPreambleHandler extends SimpleChannelInboundHandler<ByteBuf> {

View File

@ -26,6 +26,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* Decoder for rpc request.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyRpcServerRequestDecoder extends ChannelInboundHandlerAdapter {

View File

@ -26,6 +26,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* Encoder for {@link RpcResponse}.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyRpcServerResponseEncoder extends ChannelOutboundHandlerAdapter {

View File

@ -33,6 +33,7 @@ import org.apache.htrace.TraceInfo;
/**
* Datastructure that holds all necessary to a method invocation and then afterward, carries the
* result.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyServerCall extends ServerCall<NettyServerRpcConnection> {

View File

@ -38,6 +38,7 @@ import org.apache.htrace.TraceInfo;
/**
* RpcConnection implementation for netty rpc server.
* @since 2.0.0
*/
@InterfaceAudience.Private
class NettyServerRpcConnection extends ServerRpcConnection {

View File

@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.util.Pair;
/**
* Helper class for passing netty event loop config to {@link AsyncFSWALProvider}.
* @since 2.0.0
*/
public class NettyAsyncFSWALConfigHelper {