com.jamonapi.jmx.ExceptionMXBean Maven / Gradle / Ivy
package com.jamonapi.jmx;
import java.util.Date;
/**
* MxBean that tracks the count of the number of exceptions thrown. It also shows the full stacktrace of the
* most recent exception thrown.
*/
public interface ExceptionMXBean {
static final String LABEL = "com.jamonapi.Exceptions";
static final String UNITS = "Exception";
/**
* Get the stacktrace in string format of the most recently thrown exception.
* @return stacktrace
*/
public String getMostRecentException();
/**
* Get the total count of exceptions thrown.
*
* @return number of exceptions thrown
*/
public long getExceptionCount();
/**
* Get the date of the most recently thrown exception.
*
* @return date
*/
public Date getWhen();
}