@InterfaceAudience.Private public final class ThroughputControlUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static AtomicInteger |
NAME_COUNTER |
private static String |
NAME_DELIMITER |
Modifier | Constructor and Description |
---|---|
private |
ThroughputControlUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getNameForThrottling(HStore store,
String opName)
Generate a name for throttling, to prevent name conflict when multiple IO operation running
parallel on the same store.
|
private static final AtomicInteger NAME_COUNTER
private static final String NAME_DELIMITER
private ThroughputControlUtil()
public static String getNameForThrottling(HStore store, String opName)
store
- the Store instance on which IO operation is happeningopName
- Name of the IO operation, e.g. "flush", "compaction", etc.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.