public static enum FwdServerJMX.QueryProfiler extends java.lang.Enum<FwdServerJMX.QueryProfiler> implements OptionalQueryProfiler
| Enum Constant and Description |
|---|
QueryProfiler
Query profiler
|
| Modifier and Type | Field and Description |
|---|---|
private SimpleQueryProfiler |
profiler
Profiler instance
|
| Modifier and Type | Method and Description |
|---|---|
SimpleQueryProfiler |
getProfiler()
Retrieve the profiler back-end of this profiler.
|
void |
register(BooleanConsumer agent)
Register enable/disable setter
|
java.lang.String |
toString(java.lang.String ts,
java.lang.String comment)
Return the string representation of a profiled query
|
void |
updateCacheHits(java.lang.String query,
long value)
Update the number of cache hits of a specified query
|
void |
updateCacheMisses(java.lang.String query,
long value)
Update the number of cache misses of a specified query
|
void |
updateHydrateTotalTime(java.lang.String query,
long value)
Update the number of nanoseconds spent in hydrate of a specified query
|
void |
updateRowsCount(java.lang.String query,
long value)
Update the number of rows retrieved from a result set
|
static FwdServerJMX.QueryProfiler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FwdServerJMX.QueryProfiler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FwdServerJMX.QueryProfiler QueryProfiler
private final SimpleQueryProfiler profiler
public static FwdServerJMX.QueryProfiler[] values()
for (FwdServerJMX.QueryProfiler c : FwdServerJMX.QueryProfiler.values()) System.out.println(c);
public static FwdServerJMX.QueryProfiler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void register(BooleanConsumer agent)
register in interface AgentRegistry<BooleanConsumer>agent - enable/disable setterpublic SimpleQueryProfiler getProfiler()
public void updateRowsCount(java.lang.String query,
long value)
updateRowsCount in interface QueryProfilerquery - the query for which the update is donevalue - new valuepublic void updateCacheHits(java.lang.String query,
long value)
updateCacheHits in interface QueryProfilerquery - the query for which the update is donevalue - the number of cache hitspublic void updateCacheMisses(java.lang.String query,
long value)
updateCacheMisses in interface QueryProfilerquery - the query for which the update is donevalue - the number of cache missespublic void updateHydrateTotalTime(java.lang.String query,
long value)
updateHydrateTotalTime in interface QueryProfilerquery - the query for which the update is donevalue - the number of nanoseconds spent in hydratepublic java.lang.String toString(java.lang.String ts,
java.lang.String comment)
toString in interface QueryProfilerts - The measurement time stampcomment - The comment