/** * Create a new transaction monitor using the provided * class and method to generate a name. The monitor is * marked as failed by default. Also, the start time of * this transaction is noted, thereby starting the stop * watch. * * @param klass the class that we're monitoring * @param method a string containing the method name that we're monitoring */ public TransactionMonitor(Class klass, String method) { this(formatName(klass, method)); }
/** * Create a new transaction monitor using the provided * class and method to generate a name, with the provided * monitoring level. The monitor is markedas failed by * default. Also, the start time of this transaction is * noted, thereby starting the stop watch. * * @param klass the class that we're monitoring * @param method a string containing the method name that we're monitoring * @param monitoringLevel the monitoring level */ public TransactionMonitor(Class klass, String method, MonitoringLevel monitoringLevel) { this(formatName(klass, method), monitoringLevel); }
/** * Create a new transaction monitor using the provided * class and method to generate a name, with the provided * inherited attributes. The monitor is markedas failed * by default. Also, the start time of this transaction * is noted, thereby starting the stop watch. * * @param klass the class that we're monitoring * @param method a string containing the method name that we're monitoring * @param inheritedAttributes the collection of inherited attributes */ public TransactionMonitor(Class klass, String method, Map inheritedAttributes) { this(formatName(klass, method), inheritedAttributes); }