|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.common.logging.format.NetloggerEvent
public class NetloggerEvent
The netlogger event.
| Field Summary | |
|---|---|
private LogEvent |
mLogEvent
The current event object. |
private EventLogMessage |
mMessage
The current log event message. |
private String |
mProgram
The name of the program. |
| Constructor Summary | |
|---|---|
NetloggerEvent()
The default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String mProgram
private LogEvent mLogEvent
private EventLogMessage mMessage
| Constructor Detail |
|---|
public NetloggerEvent()
| Method Detail |
|---|
public void setProgramName(String name)
setProgramName in interface Eventname - public String getProgramName(String name)
getProgramName in interface Eventname -
public void setEvent(String name,
String entityName,
String entityID)
setEvent in interface Eventname - 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.
public void setEvent(String name,
Map<String,String> map)
setEvent in interface Eventname - the name of the event to be associatedmap - Map of Entity Names with the entity identifiers.public String getEventName()
getEventName in interface Eventpublic String getStartEventMessage()
getStartEventMessage in interface Eventpublic String getEndEventMessage()
getEndEventMessage in interface Eventpublic void reset()
reset in interface Event
public Event add(String key,
String value)
add in interface Eventkey - value -
public String createLogMessage()
createLogMessage in interface Eventpublic String createLogMessageAndReset()
createLogMessageAndReset in interface Event
public String createEntityHierarchyMessage(String parentType,
String parentID,
String childIdType,
Collection<String> childIDs)
createEntityHierarchyMessage in interface EventparentType - the type of parent entityparentID - the id of the parent entitychildIdType - the type of children entitieschildIDs - Collection of children id's
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||