Modifier and Type | Field and Description |
---|---|
private LogEvent |
mLogEvent
The current event object.
|
private EventLogMessage |
mMessage
The current log event message.
|
private String |
mProgram
The name of the program.
|
Constructor and Description |
---|
NetloggerEvent()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
Event |
add(String key,
String value)
Add to the log message.
|
String |
createEntityHierarchyMessage(String parentType,
String parentID,
String childIdType,
Collection<String> childIDs)
Creates a log message that connects the parent entities with the
children.
|
String |
createLogMessage()
Creates a log message with the contents of the internal log buffer.
|
String |
createLogMessageAndReset()
Creates a log message with the contents of the internal log buffer.
|
String |
getEndEventMessage()
Creates the end message for the event.
|
String |
getEventName()
Returns the name of event that is currently associated with the log messages.
|
String |
getProgramName(String name)
Returns the program name for the software whose log statement are logged.
|
String |
getStartEventMessage()
Creates the start message for the event.
|
void |
reset()
Reset the internal log message buffer associated with the event
|
void |
setEvent(String name,
Map<String,String> map)
Adds the event that is to be associated with the log messages onto an
internal stack
|
void |
setEvent(String name,
String entityName,
String entityID)
Set the event that is to be associated with the log messages.
|
void |
setProgramName(String name)
Sets the program name for the software whose log statement are logged.
|
private String mProgram
private LogEvent mLogEvent
private EventLogMessage mMessage
public void setProgramName(String name)
setProgramName
in interface Event
name
- public String getProgramName(String name)
getProgramName
in interface Event
name
- public void setEvent(String name, String entityName, String entityID)
public void setEvent(String name, Map<String,String> map)
public String getEventName()
getEventName
in interface Event
public String getStartEventMessage()
getStartEventMessage
in interface Event
public String getEndEventMessage()
getEndEventMessage
in interface Event
public void reset()
public String createLogMessage()
createLogMessage
in interface Event
public String createLogMessageAndReset()
createLogMessageAndReset
in interface Event
public String createEntityHierarchyMessage(String parentType, String parentID, String childIdType, Collection<String> childIDs)
createEntityHierarchyMessage
in interface Event
parentType
- the type of parent entityparentID
- the id of the parent entitychildIdType
- the type of children entitieschildIDs
- Collection of children id'sCopyright © 2011 The University of Southern California. All Rights Reserved.