package org.onap.policy.pdpx.main.rest.model;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
/**
* Class to represent statistics report of xacmlPdp service.
*
*/
+@Getter
+@Setter
+@ToString
public class StatisticsReport {
private int code;
private long totalPolicyTypesCount;
private long totalPoliciesCount;
+ private long totalErrorCount;
private long permitDecisionsCount;
private long denyDecisionsCount;
private long indeterminantDecisionsCount;
private long notApplicableDecisionsCount;
-
-
- /**
- * Returns the code of this {@link StatisticsReport} instance.
- *
- * @return the code
- */
- public int getCode() {
- return code;
- }
-
- /**
- * Set code in this {@link StatisticsReport} instance.
- *
- * @param code the code to set
- */
- public void setCode(final int code) {
- this.code = code;
- }
-
- /**
- * Returns the totalPolicyTypesCount of this {@link StatisticsReport} instance.
- *
- * @return the totalPolicyTypesCount
- */
- public long getTotalPolicyTypesCount() {
- return totalPolicyTypesCount;
- }
-
- /**
- * Set totalPolicyTypesCount in this {@link StatisticsReport} instance.
- *
- * @param totalPolicyTypesCount the totalPolicyTypesCount to set
- */
- public void setTotalPolicyTypesCount(long totalPolicyTypesCount) {
- this.totalPolicyTypesCount = totalPolicyTypesCount;
- }
-
- /**
- * Returns the totalPoliciesCount of this {@link StatisticsReport} instance.
- *
- * @return the totalPoliciesCount
- */
- public long getTotalPoliciesCount() {
- return totalPoliciesCount;
- }
-
- /**
- * Set totalPoliciesCount in this {@link StatisticsReport} instance.
- *
- * @param totalPoliciesCount the totalPoliciesCount to set
- */
- public void setTotalPoliciesCount(long totalPoliciesCount) {
- this.totalPoliciesCount = totalPoliciesCount;
- }
-
- /**
- * Returns the permitDecisionsCount of this {@link StatisticsReport} instance.
- *
- * @return the permitDecisionsCount
- */
- public long getPermitDecisionsCount() {
- return permitDecisionsCount;
- }
-
- /**
- * Set permitDecisionsCount in this {@link StatisticsReport} instance.
- *
- * @param permitDecisionsCount the permitDecisionsCount to set
- */
- public void setPermitDecisionsCount(long permitDecisionsCount) {
- this.permitDecisionsCount = permitDecisionsCount;
- }
-
- /**
- * Returns the denyDecisionsCount of this {@link StatisticsReport} instance.
- *
- * @return the denyDecisionsCount
- */
- public long getDenyDecisionsCount() {
- return denyDecisionsCount;
- }
-
- /**
- * Set denyDecisionsCount in this {@link StatisticsReport} instance.
- *
- * @param denyDecisionsCount the denyDecisionsCount to set
- */
- public void setDenyDecisionsCount(long denyDecisionsCount) {
- this.denyDecisionsCount = denyDecisionsCount;
- }
-
- /**
- * Returns the indeterminantDecisionsCount of this {@link StatisticsReport} instance.
- *
- * @return the indeterminantDecisionsCount
- */
- public long getIndeterminantDecisionsCount() {
- return indeterminantDecisionsCount;
- }
-
- /**
- * Set indeterminantDecisionsCount in this {@link StatisticsReport} instance.
- *
- * @param indeterminantDecisionsCount the indeterminantDecisionsCount to set
- */
- public void setIndeterminantDecisionsCount(long indeterminantDecisionsCount) {
- this.indeterminantDecisionsCount = indeterminantDecisionsCount;
- }
-
- /**
- * Returns the notApplicableDecisionsCount of this {@link StatisticsReport} instance.
- *
- * @return the notApplicableDecisionsCount
- */
- public long getNotApplicableDecisionsCount() {
- return notApplicableDecisionsCount;
- }
-
- /**
- * Set notApplicableDecisionsCount in this {@link StatisticsReport} instance.
- *
- * @param notApplicableDecisionsCount the notApplicableDecisionsCount to set
- */
- public void setNotApplicableDecisionsCount(long notApplicableDecisionsCount) {
- this.notApplicableDecisionsCount = notApplicableDecisionsCount;
- }
-
- /**
- * {@inheritDoc}.
- */
- @Override
- public String toString() {
- final StringBuilder builder = new StringBuilder();
- builder.append("StatisticsReport [code=");
- builder.append(getCode());
- builder.append(", totalPolicyTypesCount=");
- builder.append(getTotalPolicyTypesCount());
- builder.append(", totalPoliciesCount=");
- builder.append(getTotalPoliciesCount());
- builder.append(", permitDecisionsCount=");
- builder.append(getPermitDecisionsCount());
- builder.append(", denyDecisionsCount=");
- builder.append(getDenyDecisionsCount());
- builder.append(", indeterminantDecisionsCount=");
- builder.append(getIndeterminantDecisionsCount());
- builder.append(", notApplicableDecisionsCount=");
- builder.append(getNotApplicableDecisionsCount());
- builder.append("]");
- return builder.toString();
- }
}