Package | Description |
---|---|
org.javasimon |
Core package, contains
Simon implementations, with
the SimonManager as the center point of the API. |
org.javasimon.callback | |
org.javasimon.callback.lastsplits |
LastSplitsCallback retains last
splits in a ring a buffer (fixed size FIFO queue). |
org.javasimon.callback.quantiles |
QuantilesCallback sorts splits to categories
(Bucket s) based on time ranges. |
org.javasimon.callback.timeline | |
org.javasimon.console |
Java Simon embeddable Web console base package.
|
org.javasimon.console.action |
All controllers (aka Action beans in Struts world) are located in this package.
|
org.javasimon.console.html |
HTML generation helper classes.
|
org.javasimon.console.plugin | |
org.javasimon.jmx |
JMX capabilities for Simons.
|
org.javasimon.source |
MonitorSource is the interface used as function to transform execution context (method invocation,
HTTP request...) into a Simon. |
org.javasimon.utils |
Java Simon supporting utilities and tools.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Counter
Counter tracks the single integer value and watches its max/min values.
|
interface |
Stopwatch
Stopwatch Simon measures time spans and holds related statistics.
|
Modifier and Type | Method and Description |
---|---|
Simon |
Simon.getParent()
Returns parent Simon.
|
Simon |
SwitchingManager.getRootSimon() |
static Simon |
SimonManager.getRootSimon()
Returns root Simon.
|
Simon |
Manager.getRootSimon()
Returns root Simon.
|
Simon |
EnabledManager.getRootSimon() |
Simon |
DisabledManager.getRootSimon()
Returns "Null Simon" that always returns empty/null values and cannot measure anything.
|
Simon |
SwitchingManager.getSimon(String name) |
static Simon |
SimonManager.getSimon(String name)
Returns Simon by its name if it exists.
|
Simon |
Manager.getSimon(String name)
Returns Simon by its name if it exists.
|
Simon |
EnabledManager.getSimon(String name) |
Simon |
DisabledManager.getSimon(String name)
Returns "Null Simon" that always returns empty/null values and cannot measure anything.
|
Modifier and Type | Method and Description |
---|---|
List<Simon> |
Simon.getChildren()
Returns list of children - direct sub-simons.
|
Collection<Simon> |
SwitchingManager.getSimons(SimonFilter simonFilter) |
static Collection<Simon> |
SimonManager.getSimons(SimonFilter simonFilter)
Returns collection containing all existing Simons accepted by specified
SimonFilter . |
Collection<Simon> |
Manager.getSimons(SimonFilter simonFilter)
Returns collection containing all existing Simons accepted by specified
SimonFilter . |
Collection<Simon> |
EnabledManager.getSimons(SimonFilter simonFilter) |
Collection<Simon> |
DisabledManager.getSimons(SimonFilter simonFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
SimonPattern.accept(Simon simon) |
boolean |
SimonFilter.accept(Simon simon)
Checks whether current Simon should be used/considered.
|
Constructor and Description |
---|
SimonPattern(String pattern,
Class<? extends Simon> expectedType)
Creates Simon pattern that used to match Simons of specified type with names that correspond to
the pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FilterRule.checkCondition(Simon simon,
Object... params)
Checks the Simon and optional parameters against the condition specified for a rule.
|
void |
CompositeFilterCallback.onSimonCreated(Simon simon) |
void |
CompositeCallbackImpl.onSimonCreated(Simon simon) |
void |
CallbackSkeleton.onSimonCreated(Simon simon) |
void |
Callback.onSimonCreated(Simon simon)
Simon created event is called when Simon is successfully created by the Manager.
|
void |
CompositeFilterCallback.onSimonDestroyed(Simon simon) |
void |
CompositeCallbackImpl.onSimonDestroyed(Simon simon) |
void |
CallbackSkeleton.onSimonDestroyed(Simon simon) |
void |
Callback.onSimonDestroyed(Simon simon)
Simon destroyed event is called when Simon is successfully destroyed by the Manager.
|
Modifier and Type | Method and Description |
---|---|
void |
LastSplitsCallback.onSimonCreated(Simon simon)
When Stopwatch is created, a Last Splits attributes is added.
|
Modifier and Type | Method and Description |
---|---|
void |
AutoQuantilesCallback.onSimonCreated(Simon simon)
When simon is created, the list containing Split values is added to stopwatch attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
TimelineCallback.onSimonCreated(Simon simon)
On simon creation a timeline attribute is added (for Stopwatches only).
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Simon> |
SimonType.getType() |
Modifier and Type | Method and Description |
---|---|
static SimonType |
SimonTypeFactory.getValueFromInstance(Simon simon)
Get simon type from simon instance.
|
void |
SimonVisitor.visit(Simon simon) |
static void |
SimonVisitors.visitTree(Simon simon,
SimonVisitor visitor)
Visit Simons recursively as a tree starting from the specified Simon.
|
Modifier and Type | Method and Description |
---|---|
static SimonType |
SimonTypeFactory.getValueFromType(Class<? extends Simon> type)
Get simon type from simon class.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectJS |
AbstractJsonAction.createAttributesObjectJS(Simon simon) |
protected Element |
TreeXmlAction.createElement(Document document,
Simon simon) |
protected Element |
AbstractXmlAction.createElement(Document document,
Simon simon)
Transforms a Simon into a JSON object.
|
protected ObjectJS |
TreeJsonAction.createObjectJS(Simon simon) |
protected ObjectJS |
AbstractJsonAction.createObjectJS(Simon simon)
Transforms a Simon into a JSON object.
|
DetailHtmlBuilder |
DetailPlugin.executeHtml(ActionContext context,
DetailHtmlBuilder htmlBuilder,
StringifierFactory htmlStringifierFactory,
Simon simon)
Callback for flat HTML rendering.
|
ObjectJS |
DetailPlugin.executeJson(ActionContext context,
StringifierFactory jsonStringifierFactory,
Simon simon)
Callback for flat JSON rendering.
|
protected void |
AbstractTableAction.printBodyRow(Simon simon,
PrintWriter writer) |
DetailHtmlBuilder |
DetailHtmlBuilder.simonProperty(Simon simon,
String propertyLabel,
String propertyName) |
DetailHtmlBuilder |
DetailHtmlBuilder.simonProperty(Simon simon,
String propertyLabel,
String propertyName,
Integer colSpan) |
boolean |
DetailPlugin.supports(Simon simon)
Indicates this plugin applies to this kind of Simon.
|
Modifier and Type | Method and Description |
---|---|
T |
HtmlBuilder.simonProperty(Simon simon,
String propertyName)
Write Simon property (using Java Bean convention).
|
Modifier and Type | Method and Description |
---|---|
DetailHtmlBuilder |
TimelineDetailPlugin.executeHtml(ActionContext context,
DetailHtmlBuilder htmlBuilder,
StringifierFactory htmlStringifierFactory,
Simon simon) |
DetailHtmlBuilder |
QuantilesDetailPlugin.executeHtml(ActionContext context,
DetailHtmlBuilder htmlBuilder,
StringifierFactory htmlStringifierFactory,
Simon simon) |
DetailHtmlBuilder |
CallTreeDetailPlugin.executeHtml(ActionContext context,
DetailHtmlBuilder htmlBuilder,
StringifierFactory htmlStringifierFactory,
Simon simon) |
ObjectJS |
TimelineDetailPlugin.executeJson(ActionContext context,
StringifierFactory jsonStringifierFactory,
Simon simon) |
ObjectJS |
QuantilesDetailPlugin.executeJson(ActionContext context,
StringifierFactory jsonStringifierFactory,
Simon simon) |
ObjectJS |
CallTreeDetailPlugin.executeJson(ActionContext context,
StringifierFactory jsonStringifierFactory,
Simon simon)
Generate a JSON call tree object or an error string if no call tree
|
boolean |
TimelineDetailPlugin.supports(Simon simon)
Indicate that this plugin only applies on Stopwatches.
|
boolean |
QuantilesDetailPlugin.supports(Simon simon)
Indicate that this plugin only applies on Stopwatches.
|
boolean |
CallTreeDetailPlugin.supports(Simon simon)
Indicate that this plugin only applies on Stopwatches.
|
Modifier and Type | Method and Description |
---|---|
protected Simon |
StopwatchMXBeanImpl.simon() |
protected Simon |
CounterMXBeanImpl.simon() |
protected abstract Simon |
AbstractSimonMXBeanImpl.simon()
Returns the wrapped Simon.
|
Modifier and Type | Method and Description |
---|---|
protected SimonSuperMXBean |
JmxRegisterCallback.constructObject(Simon simon)
Constructs JMX object from Simon object.
|
protected String |
JmxRegisterCallback.constructObjectName(Simon simon)
Constructs JMX object name from Simon object.
|
void |
JmxRegisterCallback.onSimonCreated(Simon simon)
After Simon is created respective MX bean is registered for it according to its type.
|
void |
JmxRegisterCallback.onSimonDestroyed(Simon simon)
When the Simon is destroyed, its MX bean is unregistered.
|
protected void |
JmxRegisterCallback.register(Simon simon)
Method registering Simon MX Bean - can not be overridden, but can be used in subclasses.
|
protected String |
JmxRegisterCallback.simonType(Simon simon)
Returns type of the simon as defined in
SimonInfo.COUNTER ,
SimonInfo.STOPWATCH or SimonInfo.UNKNOWN . |
Modifier and Type | Class and Description |
---|---|
class |
CachedMonitorSource<L,M extends Simon,K>
Monitor source playing the role of cache for delegate monitor source.
|
class |
DisabledMonitorSource<L,M extends Simon>
Disabled monitor source.
|
interface |
MonitorSource<L,M extends Simon>
Monitor source provides monitors (Simons) for a specific "location" name.
|
Modifier and Type | Method and Description |
---|---|
static <L,M extends Simon> |
DisabledMonitorSource.get()
Returns a singleton instance.
|
Modifier and Type | Method and Description |
---|---|
static CounterAggregate |
SimonUtils.calculateCounterAggregate(Simon simon)
Aggregate statistics from all counters in hierarchy of simons.
|
static CounterAggregate |
SimonUtils.calculateCounterAggregate(Simon simon,
SimonFilter filter)
Aggregate statistics from all counters in hierarchy that pass specified filter.
|
static StopwatchAggregate |
SimonUtils.calculateStopwatchAggregate(Simon simon)
Aggregate statistics from all stopwatches in hierarchy of simons.
|
static StopwatchAggregate |
SimonUtils.calculateStopwatchAggregate(Simon simon,
SimonFilter filter)
Aggregate statistics from all stopwatches in hierarchy that pass specified filter.
|
void |
SystemDebugCallback.onSimonCreated(Simon simon) |
void |
SystemDebugCallback.onSimonDestroyed(Simon simon) |
static String |
SimonUtils.simonTreeString(Simon simon)
Returns multi-line string containing Simon tree starting with the specified Simon.
|
Copyright © 2019. All rights reserved.