HBASE-25198 Remove deprecated RpcSchedulerFactory#create (#2561)
Remove the deprecated RpcSchedulerFactory#create(Configuration, PriorityFunction) method from the interface and in all implementing classes. Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
6c8f5f30d5
commit
1b58af1841
|
@ -38,10 +38,4 @@ public class FifoRpcSchedulerFactory implements RpcSchedulerFactory {
|
||||||
HConstants.DEFAULT_REGION_SERVER_HANDLER_COUNT);
|
HConstants.DEFAULT_REGION_SERVER_HANDLER_COUNT);
|
||||||
return new FifoRpcScheduler(conf, handlerCount);
|
return new FifoRpcScheduler(conf, handlerCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
@Override
|
|
||||||
public RpcScheduler create(Configuration conf, PriorityFunction priority) {
|
|
||||||
return create(conf, priority, null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,11 +35,4 @@ public interface RpcSchedulerFactory {
|
||||||
* Constructs a {@link org.apache.hadoop.hbase.ipc.RpcScheduler}.
|
* Constructs a {@link org.apache.hadoop.hbase.ipc.RpcScheduler}.
|
||||||
*/
|
*/
|
||||||
RpcScheduler create(Configuration conf, PriorityFunction priority, Abortable server);
|
RpcScheduler create(Configuration conf, PriorityFunction priority, Abortable server);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated since 1.0.0.
|
|
||||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-12028">HBASE-12028</a>
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
RpcScheduler create(Configuration conf, PriorityFunction priority);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,16 +32,6 @@ import org.apache.hadoop.hbase.ipc.SimpleRpcScheduler;
|
||||||
@InterfaceAudience.LimitedPrivate({HBaseInterfaceAudience.COPROC, HBaseInterfaceAudience.PHOENIX})
|
@InterfaceAudience.LimitedPrivate({HBaseInterfaceAudience.COPROC, HBaseInterfaceAudience.PHOENIX})
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public class SimpleRpcSchedulerFactory implements RpcSchedulerFactory {
|
public class SimpleRpcSchedulerFactory implements RpcSchedulerFactory {
|
||||||
/**
|
|
||||||
* @deprecated since 1.0.0.
|
|
||||||
* @see <a href="https://issues.apache.org/jira/browse/HBASE-12028">HBASE-12028</a>
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
@Deprecated
|
|
||||||
public RpcScheduler create(Configuration conf, PriorityFunction priority) {
|
|
||||||
return create(conf, priority, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RpcScheduler create(Configuration conf, PriorityFunction priority, Abortable server) {
|
public RpcScheduler create(Configuration conf, PriorityFunction priority, Abortable server) {
|
||||||
int handlerCount = conf.getInt(HConstants.REGION_SERVER_HANDLER_COUNT,
|
int handlerCount = conf.getInt(HConstants.REGION_SERVER_HANDLER_COUNT,
|
||||||
|
|
Loading…
Reference in New Issue