public interface Event
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
Event |
add(java.lang.String key,
java.lang.String value)
Add to the log message.
|
java.lang.String |
createEntityHierarchyMessage(java.lang.String parentType,
java.lang.String parentID,
java.lang.String childIdType,
java.util.Collection<java.lang.String> childIDs)
Creates a log message that connects the parent entities with the
children.
|
java.lang.String |
createLogMessage()
Creates a log message with the contents of the internal log buffer.
|
java.lang.String |
createLogMessageAndReset()
Creates a log message with the contents of the internal log buffer.
|
java.lang.String |
getEndEventMessage()
Creates the end message for the event.
|
java.lang.String |
getEventName()
Returns the name of event that is currently associated with the log messages.
|
java.lang.String |
getProgramName(java.lang.String name)
Returns the program name for the software whose log statement are logged.
|
java.lang.String |
getStartEventMessage()
Creates the start message for the event.
|
void |
reset()
Reset the internal log message buffer associated with the event
|
void |
setEvent(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> map)
Adds the event that is to be associated with the log messages onto an
internal stack
|
void |
setEvent(java.lang.String name,
java.lang.String entityName,
java.lang.String entityID)
Set the event that is to be associated with the log messages.
|
void |
setProgramName(java.lang.String name)
Sets the program name for the software whose log statement are logged.
|
void setProgramName(java.lang.String name)
name
- java.lang.String getProgramName(java.lang.String name)
name
- void setEvent(java.lang.String name, java.lang.String entityName, java.lang.String entityID)
name
- the name of the event to be associatedentityName
- the primary entity that is associated with the event e.g. workflowentityID
- the id of that entity.void setEvent(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> map)
name
- the name of the event to be associatedmap
- Map of Entity Names with the entity identifiers.java.lang.String getEventName()
java.lang.String getStartEventMessage()
java.lang.String getEndEventMessage()
void reset()
Event add(java.lang.String key, java.lang.String value)
key
- value
- java.lang.String createLogMessage()
java.lang.String createLogMessageAndReset()
java.lang.String createEntityHierarchyMessage(java.lang.String parentType, java.lang.String parentID, java.lang.String childIdType, java.util.Collection<java.lang.String> childIDs)
parentType
- the type of parent entityparentID
- the id of the parent entitychildIdType
- the type of children entitieschildIDs
- Collection of children id's