
jio.jdbc.EntitiesFoundEvent Maven / Gradle / Ivy
package jio.jdbc;
import java.util.concurrent.atomic.AtomicLong;
import jdk.jfr.*;
/**
* Event that is created and written to the Flight Recorder system when a request response is received or an exception
* happens during the exchange
*/
@Label("JDBC Statement")
@Name("jio.jdbc.QueryStm")
@Category({"JIO", "DATABASE", "JDBC"})
@Description("JDBC query statements performed by jio-jdbc")
@StackTrace(value = false)
final class EntitiesFoundEvent extends Event {
static final String QUERY_COUNTER_FIELD = "queryCounter";
static final String ROWS_RETURNED_FIELD = "rowsReturned";
static final String FETCH_SIZE_FIELD = "fetchSize";
public int fetchSize;
int rowsReturned;
static final AtomicLong counter = new AtomicLong(0);
long queryCounter = counter.incrementAndGet();
static final String RESULT_FIELD = "result";
static final String SQL_FIELD = "sql";
static final String EXCEPTION_FIELD = "exception";
static final String LABEL_FIELD = "label";
/**
* the method of the request
*/
String sql;
/**
* the result of the exchange: a success if a response is received or an exception
*/
String result;
/**
* the exception in case of one happens during the exchange
*/
String exception;
/**
* Short label to identify the statement
*/
String label;
enum RESULT {
SUCCESS, FAILURE
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy