Class ConnectorExecutionTimeLogger


  • public class ConnectorExecutionTimeLogger
    extends java.lang.Object
    Log connector execution time when the connector took more than the configured threshold
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log​(long processDefinitionId, SConnectorInstance sConnectorInstance, org.bonitasoft.engine.connector.Connector connector, java.util.Map<java.lang.String,​java.lang.Object> inputParameters, long executionTimeMillis)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectorExecutionTimeLogger

        public ConnectorExecutionTimeLogger​(java.lang.Long warnWhenLongerThanMillis)
        Parameters:
        warnWhenLongerThanMillis - the duration in milli seconds above which the time taken will be logged as a warning
    • Method Detail

      • log

        public void log​(long processDefinitionId,
                        SConnectorInstance sConnectorInstance,
                        org.bonitasoft.engine.connector.Connector connector,
                        java.util.Map<java.lang.String,​java.lang.Object> inputParameters,
                        long executionTimeMillis)