public class IncrementCoalescer extends Object implements IncrementCoalescerMBean
Modifier and Type | Field and Description |
---|---|
protected Log |
LOG |
Constructor and Description |
---|
IncrementCoalescer(ThriftServerRunner.HBaseHandler hand) |
Modifier and Type | Method and Description |
---|---|
boolean |
canQueue() |
int |
getCorePoolSize() |
long |
getCountersMapSize() |
long |
getFailedIncrements() |
int |
getMaxPoolSize() |
int |
getMaxQueueSize() |
long |
getPoolCompletedTaskCount() |
int |
getPoolLargestPoolSize() |
long |
getPoolTaskCount() |
int |
getQueueSize() |
long |
getSuccessfulCoalescings() |
long |
getTotalIncrements() |
boolean |
queueIncrement(TIncrement inc) |
boolean |
queueIncrements(List<TIncrement> incs) |
void |
setCorePoolSize(int newCoreSize) |
void |
setMaxPoolSize(int newMaxSize) |
void |
setMaxQueueSize(int newSize) |
public IncrementCoalescer(ThriftServerRunner.HBaseHandler hand)
public boolean queueIncrement(TIncrement inc) throws TException
TException
public boolean queueIncrements(List<TIncrement> incs) throws TException
TException
public boolean canQueue()
public int getQueueSize()
getQueueSize
in interface IncrementCoalescerMBean
public int getMaxQueueSize()
getMaxQueueSize
in interface IncrementCoalescerMBean
public void setMaxQueueSize(int newSize)
setMaxQueueSize
in interface IncrementCoalescerMBean
public long getPoolCompletedTaskCount()
getPoolCompletedTaskCount
in interface IncrementCoalescerMBean
public long getPoolTaskCount()
getPoolTaskCount
in interface IncrementCoalescerMBean
public int getPoolLargestPoolSize()
getPoolLargestPoolSize
in interface IncrementCoalescerMBean
public int getCorePoolSize()
getCorePoolSize
in interface IncrementCoalescerMBean
public void setCorePoolSize(int newCoreSize)
setCorePoolSize
in interface IncrementCoalescerMBean
public int getMaxPoolSize()
getMaxPoolSize
in interface IncrementCoalescerMBean
public void setMaxPoolSize(int newMaxSize)
setMaxPoolSize
in interface IncrementCoalescerMBean
public long getFailedIncrements()
getFailedIncrements
in interface IncrementCoalescerMBean
public long getSuccessfulCoalescings()
getSuccessfulCoalescings
in interface IncrementCoalescerMBean
public long getTotalIncrements()
getTotalIncrements
in interface IncrementCoalescerMBean
public long getCountersMapSize()
getCountersMapSize
in interface IncrementCoalescerMBean