edu.isi.pegasus.common.logging.format
Modifier and Type | Field and Description |
---|---|
private double |
mEnd
The time when end message for the event was generated
|
private StringBuffer |
mEventBuffer
The buffer that stores information about the event
|
private StringBuffer |
mLogBuffer
The buffer that stores information about the log message
|
private String |
mProgram
The name of the program.
|
private double |
mStart
The start time when start message for the event was generated
|
Constructor and Description |
---|
SimpleEvent()
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 StringBuffer mEventBuffer
private StringBuffer mLogBuffer
private double mStart
private double mEnd
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's