Class NoLimitThroughputController
java.lang.Object
org.apache.hadoop.hbase.regionserver.throttle.NoLimitThroughputController
- All Implemented Interfaces:
ThroughputController
,Stoppable
@LimitedPrivate("Configuration")
public class NoLimitThroughputController
extends Object
implements ThroughputController
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Control the throughput.void
Finish the controller.boolean
Returns True ifStoppable.stop(String)
has been closed.void
setup
(RegionServerServices server) Setup controller for the given region server.void
Start the throughput controller.void
Stop this service.toString()
-
Field Details
-
INSTANCE
-
stopped
-
-
Constructor Details
-
NoLimitThroughputController
public NoLimitThroughputController()
-
-
Method Details
-
setup
Description copied from interface:ThroughputController
Setup controller for the given region server.- Specified by:
setup
in interfaceThroughputController
-
start
Description copied from interface:ThroughputController
Start the throughput controller.- Specified by:
start
in interfaceThroughputController
-
control
Description copied from interface:ThroughputController
Control the throughput. Will sleep if too fast.- Specified by:
control
in interfaceThroughputController
- Returns:
- the actual sleep time.
- Throws:
InterruptedException
-
finish
Description copied from interface:ThroughputController
Finish the controller. Should call this method in a finally block.- Specified by:
finish
in interfaceThroughputController
-
stop
Description copied from interface:Stoppable
Stop this service. Implementers should favor logging errors over throwing RuntimeExceptions. -
isStopped
Description copied from interface:Stoppable
Returns True ifStoppable.stop(String)
has been closed. -
toString
-