HBASE-16491 A few org.apache.hadoop.hbase.rsgroup classes missing @InterfaceAudience annotation (Umesh Agashe)
This commit is contained in:
parent
3642287b2f
commit
552400e536
|
@ -43,6 +43,7 @@ import org.apache.hadoop.hbase.NamespaceDescriptor;
|
||||||
import org.apache.hadoop.hbase.ProcedureInfo;
|
import org.apache.hadoop.hbase.ProcedureInfo;
|
||||||
import org.apache.hadoop.hbase.ServerName;
|
import org.apache.hadoop.hbase.ServerName;
|
||||||
import org.apache.hadoop.hbase.TableName;
|
import org.apache.hadoop.hbase.TableName;
|
||||||
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.client.MasterSwitchType;
|
import org.apache.hadoop.hbase.client.MasterSwitchType;
|
||||||
import org.apache.hadoop.hbase.constraint.ConstraintException;
|
import org.apache.hadoop.hbase.constraint.ConstraintException;
|
||||||
import org.apache.hadoop.hbase.coprocessor.CoprocessorService;
|
import org.apache.hadoop.hbase.coprocessor.CoprocessorService;
|
||||||
|
@ -80,6 +81,7 @@ import org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos.RemoveRSGro
|
||||||
import org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos.RemoveRSGroupResponse;
|
import org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos.RemoveRSGroupResponse;
|
||||||
|
|
||||||
|
|
||||||
|
@InterfaceAudience.Private
|
||||||
public class RSGroupAdminEndpoint extends RSGroupAdminService
|
public class RSGroupAdminEndpoint extends RSGroupAdminService
|
||||||
implements CoprocessorService, Coprocessor, MasterObserver {
|
implements CoprocessorService, Coprocessor, MasterObserver {
|
||||||
|
|
||||||
|
|
|
@ -29,12 +29,14 @@ import java.util.Set;
|
||||||
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
||||||
import org.apache.hadoop.hbase.TableName;
|
import org.apache.hadoop.hbase.TableName;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface used to manage RSGroupInfo storage. An implementation
|
* Interface used to manage RSGroupInfo storage. An implementation
|
||||||
* has the option to support offline mode.
|
* has the option to support offline mode.
|
||||||
* See {@link RSGroupBasedLoadBalancer}
|
* See {@link RSGroupBasedLoadBalancer}
|
||||||
*/
|
*/
|
||||||
|
@InterfaceAudience.Private
|
||||||
public interface RSGroupInfoManager {
|
public interface RSGroupInfoManager {
|
||||||
//Assigned before user tables
|
//Assigned before user tables
|
||||||
public static final TableName RSGROUP_TABLE_NAME =
|
public static final TableName RSGROUP_TABLE_NAME =
|
||||||
|
|
|
@ -57,6 +57,7 @@ import org.apache.hadoop.hbase.MetaTableAccessor.DefaultVisitorBase;
|
||||||
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
||||||
import org.apache.hadoop.hbase.ServerName;
|
import org.apache.hadoop.hbase.ServerName;
|
||||||
import org.apache.hadoop.hbase.TableName;
|
import org.apache.hadoop.hbase.TableName;
|
||||||
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.client.ClusterConnection;
|
import org.apache.hadoop.hbase.client.ClusterConnection;
|
||||||
import org.apache.hadoop.hbase.client.Delete;
|
import org.apache.hadoop.hbase.client.Delete;
|
||||||
import org.apache.hadoop.hbase.client.Get;
|
import org.apache.hadoop.hbase.client.Get;
|
||||||
|
@ -90,6 +91,7 @@ import org.apache.zookeeper.KeeperException;
|
||||||
* It also makes use of zookeeper to store group information needed
|
* It also makes use of zookeeper to store group information needed
|
||||||
* for bootstrapping during offline mode.
|
* for bootstrapping during offline mode.
|
||||||
*/
|
*/
|
||||||
|
@InterfaceAudience.Private
|
||||||
public class RSGroupInfoManagerImpl implements RSGroupInfoManager, ServerListener {
|
public class RSGroupInfoManagerImpl implements RSGroupInfoManager, ServerListener {
|
||||||
private static final Log LOG = LogFactory.getLog(RSGroupInfoManagerImpl.class);
|
private static final Log LOG = LogFactory.getLog(RSGroupInfoManagerImpl.class);
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.commons.logging.LogFactory;
|
||||||
import org.apache.hadoop.hbase.client.Result;
|
import org.apache.hadoop.hbase.client.Result;
|
||||||
import org.apache.hadoop.hbase.client.Scan;
|
import org.apache.hadoop.hbase.client.Scan;
|
||||||
import org.apache.hadoop.hbase.client.Table;
|
import org.apache.hadoop.hbase.client.Table;
|
||||||
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.exceptions.DeserializationException;
|
import org.apache.hadoop.hbase.exceptions.DeserializationException;
|
||||||
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
|
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
|
||||||
import org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos;
|
import org.apache.hadoop.hbase.protobuf.generated.RSGroupProtos;
|
||||||
|
@ -39,6 +40,7 @@ import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;
|
||||||
import org.apache.zookeeper.KeeperException;
|
import org.apache.zookeeper.KeeperException;
|
||||||
|
|
||||||
//TODO do better encapsulation of SerDe logic from GroupInfoManager and GroupTracker
|
//TODO do better encapsulation of SerDe logic from GroupInfoManager and GroupTracker
|
||||||
|
@InterfaceAudience.Private
|
||||||
public class RSGroupSerDe {
|
public class RSGroupSerDe {
|
||||||
private static final Log LOG = LogFactory.getLog(RSGroupSerDe.class);
|
private static final Log LOG = LogFactory.getLog(RSGroupSerDe.class);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import com.google.common.collect.Sets;
|
||||||
import com.google.common.net.HostAndPort;
|
import com.google.common.net.HostAndPort;
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.hbase.TableName;
|
import org.apache.hadoop.hbase.TableName;
|
||||||
|
import org.apache.hadoop.hbase.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.client.ConnectionFactory;
|
import org.apache.hadoop.hbase.client.ConnectionFactory;
|
||||||
import org.apache.hadoop.hbase.client.Result;
|
import org.apache.hadoop.hbase.client.Result;
|
||||||
import org.apache.hadoop.hbase.client.Scan;
|
import org.apache.hadoop.hbase.client.Scan;
|
||||||
|
@ -42,6 +43,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@InterfaceAudience.Private
|
||||||
public class VerifyingRSGroupAdminClient extends RSGroupAdmin {
|
public class VerifyingRSGroupAdminClient extends RSGroupAdmin {
|
||||||
private Table table;
|
private Table table;
|
||||||
private ZooKeeperWatcher zkw;
|
private ZooKeeperWatcher zkw;
|
||||||
|
|
Loading…
Reference in New Issue