Alachisoft.NCache.Sessions.LabelsManager Maven / Gradle / Ivy
The newest version!
package Alachisoft.NCache.Sessions;
import java.util.ArrayList;
import java.util.List;
public class LabelsManager {
private List cacheMetricLabels = new ArrayList<>();
private List bridgeMetricLabels = new ArrayList<>();
private List bridgedCacheMetricLabels = new ArrayList<>();
private List clientMetricLabels = new ArrayList<>();
private List systemMetricsLabels = new ArrayList<>();
public List getCacheMetricLabels() {
return defaultCacheCountersLabels();
}
public void setCacheMetricLabels(List value) {
cacheMetricLabels = value;
}
public List getBridgeMetricLabels() {
return defaultBridgeCountersLabels();
}
public void setBridgeMetricLabels(List value) {
bridgeMetricLabels = value;
}
public List getBridgedCacheMetricLabels() {
return defaultBridgedCacheCountersLabels();
}
public void setBridgedCacheMetricLabels(List value) {
bridgedCacheMetricLabels = value;
}
public List getClientMetricLabels() {
return defaultClientCountersLabels();
}
public void setClientMetricLabels(List value) {
clientMetricLabels = value;
}
public List getSystemMetricsLabels() {
return defaultSystemCountersLabels();
}
public void setSystemMetricsLabels(List value) {
systemMetricsLabels = value;
}
private List defaultCacheCountersLabels() {
cacheMetricLabels.clear();
cacheMetricLabels.add("cache_id");
cacheMetricLabels.add("config_id");
cacheMetricLabels.add("server");
cacheMetricLabels.add("is_mirror");
return cacheMetricLabels;
}
private List defaultBridgeCountersLabels() {
bridgeMetricLabels.clear();
bridgeMetricLabels.add("bridge_id");
bridgeMetricLabels.add("config_id");
bridgeMetricLabels.add("server");
bridgeMetricLabels.add("is_mirror");
return bridgeMetricLabels;
}
private List defaultBridgedCacheCountersLabels() {
bridgedCacheMetricLabels.clear();
bridgedCacheMetricLabels.add("bridge_id");
bridgedCacheMetricLabels.add("config_id");
bridgedCacheMetricLabels.add("cache_id");
bridgedCacheMetricLabels.add("server");
return bridgedCacheMetricLabels;
}
private List defaultClientCountersLabels() {
clientMetricLabels.clear();
clientMetricLabels.add("cache_id");
clientMetricLabels.add("config_id");
clientMetricLabels.add("client_ip");
return clientMetricLabels;
}
private List defaultSystemCountersLabels() {
systemMetricsLabels.clear();
systemMetricsLabels.add("server_ip");
systemMetricsLabels.add("installation_type");
return systemMetricsLabels;
}
}