Package org.apache.cassandra.transport
Class ClientResourceLimits
java.lang.Object
org.apache.cassandra.transport.ClientResourceLimits
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.cassandra.transport.ClientResourceLimits.AllocatorgetAllocatorForEndpoint(InetAddress endpoint) static longstatic com.codahale.metrics.Snapshotstatic longstatic longstatic intstatic com.codahale.metrics.ReservoirThis 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 requeststatic voidsetEndpointLimit(long newLimit) static voidsetGlobalLimit(long newLimit) static voidsetNativeTransportMaxRequestsPerSecond(int newPerSecond)
-
Field Details
-
GLOBAL_REQUEST_LIMITER
-
-
Constructor Details
-
ClientResourceLimits
public ClientResourceLimits()
-
-
Method Details
-
getAllocatorForEndpoint
public static org.apache.cassandra.transport.ClientResourceLimits.Allocator getAllocatorForEndpoint(InetAddress endpoint) -
getGlobalLimit
public static long getGlobalLimit() -
setGlobalLimit
public static void setGlobalLimit(long newLimit) -
getCurrentGlobalUsage
public static long getCurrentGlobalUsage() -
getEndpointLimit
public static long getEndpointLimit() -
setEndpointLimit
public static void setEndpointLimit(long newLimit) -
getCurrentIpUsage
public static com.codahale.metrics.Snapshot getCurrentIpUsage() -
getNativeTransportMaxRequestsPerSecond
public static int getNativeTransportMaxRequestsPerSecond() -
setNativeTransportMaxRequestsPerSecond
public static void setNativeTransportMaxRequestsPerSecond(int newPerSecond) -
ipUsageReservoir
public 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
-