@InterfaceAudience.LimitedPrivate(value="Configuration") public class NoLimitThroughputController extends Object implements ThroughputController
| Modifier and Type | Field and Description |
|---|---|
static NoLimitThroughputController |
INSTANCE |
private boolean |
stopped |
| Constructor and Description |
|---|
NoLimitThroughputController() |
| Modifier and Type | Method and Description |
|---|---|
long |
control(String compactionName,
long size)
Control the throughput.
|
void |
finish(String compactionName)
Finish the controller.
|
boolean |
isStopped() |
void |
setup(RegionServerServices server)
Setup controller for the given region server.
|
void |
start(String compactionName)
Start the throughput controller.
|
void |
stop(String why)
Stop this service.
|
String |
toString() |
public static final NoLimitThroughputController INSTANCE
private boolean stopped
public NoLimitThroughputController()
public void setup(RegionServerServices server)
ThroughputControllersetup in interface ThroughputControllerpublic void start(String compactionName)
ThroughputControllerstart in interface ThroughputControllerpublic long control(String compactionName, long size) throws InterruptedException
ThroughputControllercontrol in interface ThroughputControllerInterruptedExceptionpublic void finish(String compactionName)
ThroughputControllerfinish in interface ThroughputControllerpublic void stop(String why)
Stoppablepublic boolean isStopped()
isStopped in interface StoppableStoppable.stop(String) has been closed.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.