private static long totalPolicyTypesCount;
private static long totalPoliciesCount;
+ private static long errorsCount;
private static long permitDecisionsCount;
private static long denyDecisionsCount;
private static long indeterminantDecisionsCount;
return ++totalPoliciesCount;
}
+ /**
+ * Method to update the number of error decisions.
+ *
+ * @return the errorDecisionsCount
+ */
+ public static long updateErrorCount() {
+ return ++errorsCount;
+ }
+
/**
* Method to update the number of permit decisions.
*
return totalPoliciesCount;
}
+ /**
+ * Returns the current value of errorDecisionsCount.
+
+ * @return the permitDecisionsCount
+ */
+ public static long getErrorCount() {
+ return errorsCount;
+ }
+
/**
* Returns the current value of permitDecisionsCount.
* Reset all the statistics counts to 0.
*/
public static void resetAllStatistics() {
+ totalPolicyTypesCount = 0L;
totalPoliciesCount = 0L;
+ errorsCount = 0L;
permitDecisionsCount = 0L;
denyDecisionsCount = 0L;
indeterminantDecisionsCount = 0L;