org.apache.hadoop.hbase.regionserver.compactions
Class NoLimitCompactionThroughputController

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.NoLimitCompactionThroughputController
All Implemented Interfaces:
CompactionThroughputController, Stoppable

@InterfaceAudience.LimitedPrivate(value="Configuration")
public class NoLimitCompactionThroughputController
extends Object
implements CompactionThroughputController

A dummy CompactionThroughputController that does nothing.


Field Summary
static NoLimitCompactionThroughputController INSTANCE
           
 
Constructor Summary
NoLimitCompactionThroughputController()
           
 
Method Summary
 long control(String compactionName, long size)
          Control the compaction throughput.
 void finish(String compactionName)
          Finish a compaction.
 boolean isStopped()
           
 void setup(RegionServerServices server)
          Setup controller for the given region server.
 void start(String compactionName)
          Start a compaction.
 void stop(String why)
          Stop this service.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final NoLimitCompactionThroughputController INSTANCE
Constructor Detail

NoLimitCompactionThroughputController

public NoLimitCompactionThroughputController()
Method Detail

setup

public void setup(RegionServerServices server)
Description copied from interface: CompactionThroughputController
Setup controller for the given region server.

Specified by:
setup in interface CompactionThroughputController

start

public void start(String compactionName)
Description copied from interface: CompactionThroughputController
Start a compaction.

Specified by:
start in interface CompactionThroughputController

control

public long control(String compactionName,
                    long size)
             throws InterruptedException
Description copied from interface: CompactionThroughputController
Control the compaction throughput. Will sleep if too fast.

Specified by:
control in interface CompactionThroughputController
Returns:
the actual sleep time.
Throws:
InterruptedException

finish

public void finish(String compactionName)
Description copied from interface: CompactionThroughputController
Finish a compaction. Should call this method in a finally block.

Specified by:
finish in interface CompactionThroughputController

stop

public void stop(String why)
Description copied from interface: Stoppable
Stop this service.

Specified by:
stop in interface Stoppable
Parameters:
why - Why we're stopping.

isStopped

public boolean isStopped()
Specified by:
isStopped in interface Stoppable
Returns:
True if Stoppable.stop(String) has been closed.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.