All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jamonapi.jmx.ExceptionMXBean Maven / Gradle / Ivy

There is a newer version: 2.82
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy