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>
public class StatsEvent extends NamedEvent
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatsEvent.StatType-
Nested classes/interfaces inherited from class org.bedework.util.jms.events.SysEvent
SysEvent.Attribute
-
-
Field Summary
Fields Modifier and Type Field Description static StringcheckNameTimeEvent create/mod check for name uniqueness elapsed millisstatic StringcheckUidTimeEvent create/mod check for uid uniqueness elapsed millisstatic StringcreateTimeEvent create elapsed millisstatic StringdeleteTimeEvent delete elapsed millisstatic StringrefreshTimeCalendar refresh elapsed millis-
Fields inherited from class org.bedework.util.jms.events.SysEvent
syscodeStats, syscodeTimedEvent
-
-
Constructor Summary
Constructors Constructor Description StatsEvent(String name, Long longValue)StatsEvent(String name, String strValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetLongValue()static StatsEvent.StatTypegetStatType(String name)StringgetStrValue()voidtoStringSegment(ToString ts)Add our stuff to the ToString object-
Methods inherited from class org.bedework.util.jms.events.NamedEvent
getName
-
Methods inherited from class org.bedework.util.jms.events.SysEvent
addMessageAttributes, compareTo, getDtstamp, getMessageAttributes, getRelated, getSequence, getSysCode, hashCode, makeStatsEvent, makeTimedEvent, setDtstamp, setRelated, setSequence, toString
-
-
-
-
Field Detail
-
deleteTime
public static final String deleteTime
Event delete elapsed millis- See Also:
- Constant Field Values
-
createTime
public static final String createTime
Event create elapsed millis- See Also:
- Constant Field Values
-
checkNameTime
public static final String checkNameTime
Event create/mod check for name uniqueness elapsed millis- See Also:
- Constant Field Values
-
checkUidTime
public static final String checkUidTime
Event create/mod check for uid uniqueness elapsed millis- See Also:
- Constant Field Values
-
refreshTime
public static final String refreshTime
Calendar refresh elapsed millis- See Also:
- Constant Field Values
-
-
Method Detail
-
getLongValue
public Long getLongValue()
- Returns:
- Long value
-
getStrValue
public String getStrValue()
- Returns:
- String value
-
getStatType
public static StatsEvent.StatType getStatType(String name)
- Parameters:
name- of event- Returns:
- type or null
-
toStringSegment
public void toStringSegment(ToString ts)
Description copied from class:NamedEventAdd our stuff to the ToString object- Overrides:
toStringSegmentin classNamedEvent- Parameters:
ts- for result
-
-