public class CompactorMXBeanImpl extends Object implements CompactorMXBean
| Constructor and Description |
|---|
CompactorMXBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompactionEndOp(String topic,
boolean succeed) |
void |
addCompactionLatencyOp(String topic,
long latency,
TimeUnit unit) |
void |
addCompactionReadOp(String topic,
long readableBytes) |
void |
addCompactionRemovedEvent(String topic) |
void |
addCompactionStartOp(String topic) |
void |
addCompactionWriteOp(String topic,
long writeableBytes) |
Optional<CompactionRecord> |
getCompactionRecordForTopic(String topic)
Get the compaction record of the topic.
|
Set<String> |
getTopics() |
void |
removeTopic(String topic)
Remove metrics about this topic.
|
void |
reset() |
public void addCompactionRemovedEvent(String topic)
public void addCompactionStartOp(String topic)
public void addCompactionEndOp(String topic, boolean succeed)
public void removeTopic(String topic)
CompactorMXBeanremoveTopic in interface CompactorMXBeanpublic Optional<CompactionRecord> getCompactionRecordForTopic(String topic)
CompactorMXBeangetCompactionRecordForTopic in interface CompactorMXBeanpublic void reset()
public void addCompactionReadOp(String topic, long readableBytes)
public void addCompactionWriteOp(String topic, long writeableBytes)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.