Package org.bedework.util.jms.events
Class StatsEvent
java.lang.Object
org.bedework.util.jms.events.SysEvent
org.bedework.util.jms.events.NamedEvent
org.bedework.util.jms.events.StatsEvent
- All Implemented Interfaces:
Serializable,Comparable<SysEvent>
Event to allow us to drop statistics into jms.
Events can be valueless, something just happened we want to count, or can take a String value or can take a Long value which can be accumulated.
- Author:
- douglm
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bedework.util.jms.events.SysEvent
SysEvent.Attribute -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEvent create/mod check for name uniqueness elapsed millisstatic final StringEvent create/mod check for uid uniqueness elapsed millisstatic final StringEvent create elapsed millisstatic final StringEvent delete elapsed millisstatic final StringCalendar refresh elapsed millisFields inherited from class org.bedework.util.jms.events.SysEvent
syscodeStats, syscodeTimedEvent -
Constructor Summary
ConstructorsConstructorDescriptionStatsEvent(String name, Long longValue) StatsEvent(String name, String strValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic StatsEvent.StatTypegetStatType(String name) voidAdd our stuff to the ToString objectMethods inherited from class org.bedework.util.jms.events.NamedEvent
getNameMethods inherited from class org.bedework.util.jms.events.SysEvent
addMessageAttributes, compareTo, getDtstamp, getMessageAttributes, getRelated, getSequence, getSysCode, hashCode, makeStatsEvent, makeTimedEvent, setDtstamp, setRelated, setSequence, toString
-
Field Details
-
deleteTime
Event delete elapsed millis- See Also:
-
createTime
Event create elapsed millis- See Also:
-
checkNameTime
Event create/mod check for name uniqueness elapsed millis- See Also:
-
checkUidTime
Event create/mod check for uid uniqueness elapsed millis- See Also:
-
refreshTime
Calendar refresh elapsed millis- See Also:
-
-
Constructor Details
-
StatsEvent
- Parameters:
name- of eventstrValue- string value
-
StatsEvent
- Parameters:
name- of eventlongValue- long value
-
-
Method Details
-
getLongValue
- Returns:
- Long value
-
getStrValue
- Returns:
- String value
-
getStatType
- Parameters:
name- of event- Returns:
- type or null
-
toStringSegment
Description copied from class:NamedEventAdd our stuff to the ToString object- Overrides:
toStringSegmentin classNamedEvent- Parameters:
ts- for result
-