private static final String ERROR = "ERROR";
private Map<String, HashMap<String, AtomicInteger>> entityStatistics;
-
+
/**
* Creates the entity op stats.
*
*
* @param descriptors the descriptors
*/
- public void intializeEntityCounters(String... entityTypes) {
+ public void intializeEntityCounters(
+ String... entityTypes) {
if (entityTypes != null && entityTypes.length > 0) {
for (String entityType : entityTypes) {
}
}
-
+
}
-
- public void intializeEntityCounters(Set<String> entityTypes) {
+
+ public void intializeEntityCounters(
+ Set<String> entityTypes) {
if (entityTypes != null && entityTypes.size() > 0) {
for (String entityType : entityTypes) {
entityStatistics.put(entityType, createEntityOpStats());
}
}
-
+
}
/**
int deletedValue = (deleted == null) ? 0 : deleted.get();
int errorValue = (error == null) ? 0 : error.get();
- sb.append("\n ").append(String.format(
- "%-30s TOTAL: %-12d CREATED: %-12d MODIFIED:"
+ sb.append("\n ")
+ .append(String.format(
+ "%-30s TOTAL: %-12d CREATED: %-12d MODIFIED:"
+ " %-12d OTHER_2XX: %-12d DELETED: %-12d ERROR: %-12d",
- counterEntityKey, totalValue, createdValue, modifiedValue, otherSuccessValue,
- deletedValue, errorValue));
+ counterEntityKey, totalValue, createdValue, modifiedValue, otherSuccessValue,
+ deletedValue, errorValue));
}
return sb.toString();
}