public class ClientResourceLimits
extends java.lang.Object
Constructor and Description |
---|
ClientResourceLimits() |
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.transport.ClientResourceLimits.Allocator |
getAllocatorForEndpoint(java.net.InetAddress endpoint) |
static long |
getCurrentGlobalUsage() |
static com.codahale.metrics.Snapshot |
getCurrentIpUsage() |
static long |
getEndpointLimit() |
static long |
getGlobalLimit() |
static com.codahale.metrics.Reservoir |
ipUsageReservoir()
This will recompute the ip usage histo on each query of the snapshot when requested instead of trying to keep
a histogram up to date with each request
|
static void |
setEndpointLimit(long newLimit) |
static void |
setGlobalLimit(long newLimit) |
public static org.apache.cassandra.transport.ClientResourceLimits.Allocator getAllocatorForEndpoint(java.net.InetAddress endpoint)
public static long getGlobalLimit()
public static void setGlobalLimit(long newLimit)
public static long getCurrentGlobalUsage()
public static long getEndpointLimit()
public static void setEndpointLimit(long newLimit)
public static com.codahale.metrics.Snapshot getCurrentIpUsage()
public static com.codahale.metrics.Reservoir ipUsageReservoir()
Copyright © 2009- The Apache Software Foundation