public FlowConstructStatistics(String flowConstructType, String name, int maxThreadSize) { super(flowConstructType, name); flowStatistics.setEnabled(enabled); this.threadPoolSize = maxThreadSize; if (this.getClass() == FlowConstructStatistics.class) { clear(); } }
public FlowConstructStatistics( String flowConstructType, String name, ProcessingStrategy processingStrategy) { super(flowConstructType, name); flowStatistics.setEnabled(enabled); if (processingStrategy instanceof AsynchronousProcessingStrategy) { this.threadPoolSize = ((AsynchronousProcessingStrategy) processingStrategy).getMaxThreads(); } if (this.getClass() == FlowConstructStatistics.class) { clear(); } }
/** Enable statistics logs (this is a dynamic parameter) */ public synchronized void setEnabled(boolean b) { super.setEnabled(b); flowStatistics.setEnabled(enabled); }