Package org.apache.cassandra.metrics
Class SamplingManager
java.lang.Object
org.apache.cassandra.metrics.SamplingManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallJobs()static StringformatResult(SamplingManager.ResultBuilder resultBuilder) static Iterable<ColumnFamilyStore>booleanregister(String ks, String table, int duration, int interval, int capacity, int count, List<String> samplers) Register the samplers for the keyspace and table.booleanunregister(String ks, String table)
-
Constructor Details
-
SamplingManager
public SamplingManager()
-
-
Method Details
-
formatResult
-
getTables
-
register
public boolean register(String ks, String table, int duration, int interval, int capacity, int count, List<String> samplers) Register the samplers for the keyspace and table.- Parameters:
ks- Keyspace. Nullable. If null, the scheduled sampling is on all keyspaces and tablestable- Nullable. If null, the scheduled sampling is on all tables of the specified keyspaceduration- Duration of each scheduled sampling job in millisecondsinterval- Interval of each scheduled sampling job in millisecondscapacity- Capacity of the sampler, higher for more accuracycount- Number of the top samples to listsamplers- a list of samplers to enable- Returns:
- true if the scheduled sampling is started successfully. Otherwise return fasle
-
unregister
-
allJobs
-