@InterfaceAudience.LimitedPrivate(value="Configuration") public class NoLimitCompactionThroughputController extends java.lang.Object implements CompactionThroughputController
| Modifier and Type | Field and Description |
|---|---|
static NoLimitCompactionThroughputController |
INSTANCE |
| Constructor and Description |
|---|
NoLimitCompactionThroughputController() |
| Modifier and Type | Method and Description |
|---|---|
long |
control(java.lang.String compactionName,
long size)
Control the compaction throughput.
|
void |
finish(java.lang.String compactionName)
Finish a compaction.
|
boolean |
isStopped() |
void |
setup(RegionServerServices server)
Setup controller for the given region server.
|
void |
start(java.lang.String compactionName)
Start a compaction.
|
void |
stop(java.lang.String why)
Stop this service.
|
java.lang.String |
toString() |
public static final NoLimitCompactionThroughputController INSTANCE
public NoLimitCompactionThroughputController()
public void setup(RegionServerServices server)
CompactionThroughputControllersetup in interface CompactionThroughputControllerpublic void start(java.lang.String compactionName)
CompactionThroughputControllerstart in interface CompactionThroughputControllerpublic long control(java.lang.String compactionName,
long size)
throws java.lang.InterruptedException
CompactionThroughputControllercontrol in interface CompactionThroughputControllerjava.lang.InterruptedExceptionpublic void finish(java.lang.String compactionName)
CompactionThroughputControllerfinish in interface CompactionThroughputControllerpublic void stop(java.lang.String why)
Stoppablepublic boolean isStopped()
isStopped in interface StoppableStoppable.stop(String) has been closed.public java.lang.String toString()
toString in class java.lang.Object