org.alfresco.bm.event
Class EventRecord
java.lang.Object
org.alfresco.bm.event.EventRecord
public class EventRecord
- extends Object
The record of a processed event.
- Since:
- 1.0
- Author:
- Derek Hulley
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIELD_ID
public static final String FIELD_ID
- See Also:
- Constant Field Values
FIELD_EVENT_NAME
public static final String FIELD_EVENT_NAME
- See Also:
- Constant Field Values
FIELD_START_TIME
public static final String FIELD_START_TIME
- See Also:
- Constant Field Values
FIELD_SUCCESS
public static final String FIELD_SUCCESS
- See Also:
- Constant Field Values
INDEX_EVENT_NAME
public static final String INDEX_EVENT_NAME
- See Also:
- Constant Field Values
INDEX_START_TIME
public static final String INDEX_START_TIME
- See Also:
- Constant Field Values
INDEX_SUCCESS
public static final String INDEX_SUCCESS
- See Also:
- Constant Field Values
EventRecord
public EventRecord(boolean success,
long startTime,
long time,
Serializable data,
Event event)
- Parameters:
success - true if this represents a successful event
otherwise falsestartTime - the time when processing startedtime - the time it took to process the eventdata - any additional data that should be recorded with this eventevent - the event that was processed
checkIndexes
public static void checkIndexes(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
- Ensure that the MongoDB collection has the required indexes for events.
- Parameters:
mongo - connection to MongoDBcollection - name of DB collection containing events
getId
public String getId()
setId
public void setId(String id)
isSuccess
public boolean isSuccess()
setSuccess
public void setSuccess(boolean success)
getStartTime
public long getStartTime()
setStartTime
public void setStartTime(long startTime)
getStartDelay
public long getStartDelay()
setStartDelay
public void setStartDelay(long startDelay)
getTime
public long getTime()
setTime
public void setTime(long time)
getEvent
public Event getEvent()
setEvent
public void setEvent(Event event)
getData
public Serializable getData()
setData
public void setData(Serializable data)
getWarning
public String getWarning()
setWarning
public void setWarning(String warning)
Copyright © 2012. All Rights Reserved.