@ThreadSafe public class InternalResourceGroup extends Object implements ResourceGroup
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalResourceGroup.RootInternalResourceGroup |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_WEIGHT |
| Modifier | Constructor and Description |
|---|---|
protected |
InternalResourceGroup(Optional<InternalResourceGroup> parent,
String name,
BiConsumer<InternalResourceGroup,Boolean> jmxExportListener,
Executor executor) |
public static final int DEFAULT_WEIGHT
protected InternalResourceGroup(Optional<InternalResourceGroup> parent, String name, BiConsumer<InternalResourceGroup,Boolean> jmxExportListener, Executor executor)
public ResourceGroupInfo getFullInfo()
public ResourceGroupInfo getInfo()
public List<ResourceGroupInfo> getPathToRoot()
public ResourceGroupId getId()
getId in interface ResourceGrouppublic int getRunningQueries()
public int getQueuedQueries()
public int getWaitingQueuedQueries()
public io.airlift.units.DataSize getSoftMemoryLimit()
getSoftMemoryLimit in interface ResourceGrouppublic void setSoftMemoryLimit(io.airlift.units.DataSize limit)
setSoftMemoryLimit in interface ResourceGrouppublic io.airlift.units.Duration getSoftCpuLimit()
getSoftCpuLimit in interface ResourceGrouppublic void setSoftCpuLimit(io.airlift.units.Duration limit)
setSoftCpuLimit in interface ResourceGrouppublic io.airlift.units.Duration getHardCpuLimit()
getHardCpuLimit in interface ResourceGrouppublic void setHardCpuLimit(io.airlift.units.Duration limit)
setHardCpuLimit in interface ResourceGrouppublic long getCpuQuotaGenerationMillisPerSecond()
getCpuQuotaGenerationMillisPerSecond in interface ResourceGrouppublic void setCpuQuotaGenerationMillisPerSecond(long rate)
setCpuQuotaGenerationMillisPerSecond in interface ResourceGrouppublic int getSoftConcurrencyLimit()
getSoftConcurrencyLimit in interface ResourceGrouppublic void setSoftConcurrencyLimit(int softConcurrencyLimit)
setSoftConcurrencyLimit in interface ResourceGrouppublic int getHardConcurrencyLimit()
getHardConcurrencyLimit in interface ResourceGrouppublic void setHardConcurrencyLimit(int hardConcurrencyLimit)
setHardConcurrencyLimit in interface ResourceGrouppublic int getMaxQueuedQueries()
getMaxQueuedQueries in interface ResourceGrouppublic void setMaxQueuedQueries(int maxQueuedQueries)
setMaxQueuedQueries in interface ResourceGrouppublic io.airlift.stats.CounterStat getTimeBetweenStartsSec()
public int getSchedulingWeight()
getSchedulingWeight in interface ResourceGrouppublic void setSchedulingWeight(int weight)
setSchedulingWeight in interface ResourceGrouppublic SchedulingPolicy getSchedulingPolicy()
getSchedulingPolicy in interface ResourceGrouppublic void setSchedulingPolicy(SchedulingPolicy policy)
setSchedulingPolicy in interface ResourceGrouppublic boolean getJmxExport()
getJmxExport in interface ResourceGrouppublic void setJmxExport(boolean export)
setJmxExport in interface ResourceGrouppublic InternalResourceGroup getOrCreateSubGroup(String name)
public void run(ManagedQueryExecution query)
protected void internalRefreshStats()
protected void internalGenerateCpuQuota(long elapsedSeconds)
protected boolean internalStartNext()
public Collection<InternalResourceGroup> subGroups()
Copyright © 2012–2019. All rights reserved.