83 lines
1.9 KiB
Java
83 lines
1.9 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.nre.util.TextUtil
|
|
*/
|
|
package com.tridium.sys.metrics;
|
|
|
|
import javax.baja.license.Feature;
|
|
import javax.baja.nre.util.TextUtil;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
abstract class Group
|
|
implements Comparable {
|
|
final String featureName;
|
|
final Count networks;
|
|
final Count devices;
|
|
final Count points;
|
|
|
|
protected static int parseLimit(Feature feature, String string) {
|
|
String string2 = feature.get(string);
|
|
int n = Integer.MAX_VALUE;
|
|
if (string2 != null && !TextUtil.toLowerCase((String)string2).equals("none")) {
|
|
n = Integer.parseInt(string2);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
public String toString() {
|
|
return "[Group " + this.featureName + ']';
|
|
}
|
|
|
|
public int compareTo(Object object) {
|
|
Group group = (Group)object;
|
|
return this.featureName.compareTo(group.featureName);
|
|
}
|
|
|
|
public boolean equals(Object object) {
|
|
if (object == null || !(object instanceof Group)) {
|
|
return false;
|
|
}
|
|
Group group = (Group)object;
|
|
return this.featureName.equals(group.featureName);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.featureName.hashCode();
|
|
}
|
|
|
|
abstract boolean isGlobal();
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.networks = new Count();
|
|
this.devices = new Count();
|
|
this.points = new Count();
|
|
}
|
|
|
|
Group(String string) {
|
|
this.this();
|
|
this.featureName = string;
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
static class Count {
|
|
int limit;
|
|
int used;
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.limit = 0;
|
|
this.used = 0;
|
|
}
|
|
|
|
Count() {
|
|
this.this();
|
|
}
|
|
}
|
|
}
|
|
|