@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class SimpleRpcSchedulerFactory extends Object implements RpcSchedulerFactory
SimpleRpcScheduler
. for the region server.Constructor and Description |
---|
SimpleRpcSchedulerFactory() |
Modifier and Type | Method and Description |
---|---|
RpcScheduler |
create(org.apache.hadoop.conf.Configuration conf,
RegionServerServices server)
Constructs a
RpcScheduler . |
public RpcScheduler create(org.apache.hadoop.conf.Configuration conf, RegionServerServices server)
RpcSchedulerFactory
RpcScheduler
.
Please note that this method is called in constructor of HRegionServer
, so some
fields may not be ready for access. The reason that HRegionServer
is passed as
parameter here is that an RPC scheduler may need to access data structure inside
HRegionServer
(see example in SimpleRpcSchedulerFactory
).create
in interface RpcSchedulerFactory
Copyright © 2014 The Apache Software Foundation. All rights reserved.