use of org.openksavi.sponge.engine.processing.MainProcessingUnit in project sponge by softelnet.
the class DefaultStatisticsManager method getSummary.
/**
* Returns statistics summary.
*
* @return statistics summary.
*/
@Override
public String getSummary() {
StringBuffer sb = new StringBuffer(512);
sb.append(getQueueSummary(getEngine().getEventQueueManager().getInputEventQueue()));
sb.append(". " + getQueueSummary(getEngine().getEventQueueManager().getMainEventQueue()));
sb.append(". Plugins (" + getPluginCount() + ")");
sb.append(". Actions (" + getEngine().getActions().size() + ")");
sb.append(". Filters (" + getEngine().getFilters().size() + ")");
sb.append(". Triggers (" + getEngine().getTriggers().size() + ")");
sb.append(". " + getEventSetProcessorsSummary("Rules", getEngine().getRuleGroups()));
sb.append(". " + getEventSetProcessorsSummary("Correlators", getEngine().getCorrelatorGroups()));
sb.append(". Event scheduler (" + getScheduledEventCount() + ")");
sb.append(". Thread pools: ");
MainProcessingUnit mainProcessingUnit = getEngine().getProcessingUnitManager().getMainProcessingUnit();
sb.append(getThreadPoolSummary(mainProcessingUnit.getWorkerThreadPool()));
sb.append(", " + getThreadPoolSummary(mainProcessingUnit.getAsyncEventSetProcessorThreadPool()));
if (mainProcessingUnit instanceof DecomposedQueueMainProcessingUnit) {
sb.append(". " + getDecomposedQueueSummary((DecomposedQueueMainProcessingUnit) mainProcessingUnit));
}
sb.append(". " + getMemorySummary());
Double eventPerformance = getEventPerformance();
if (eventPerformance != null) {
sb.append(String.format(". Events performance (%.2f events/s)", eventPerformance));
}
sb.append(".");
return sb.toString();
}
Aggregations