public class ProcessTraceEvent_impl extends Object implements ProcessTraceEvent
ProcessTraceEvent
.ANALYSIS, ANALYSIS_ENGINE, SERVICE, SERVICE_CALL
Constructor and Description |
---|
ProcessTraceEvent_impl()
Creates a new ProcessTraceEvent_impl with null property values.
|
ProcessTraceEvent_impl(String aComponentName,
String aType,
String aDescription)
Creates a new ProcessTraceEvent_impl and sets the Component name, type, and description
properties.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubEvent(ProcessTraceEvent aEvent) |
void |
addToDuration(long aAdditionalDuration) |
String |
getComponentName()
Retrieves the name of the component that is performing this event.
|
String |
getDescription()
Retrieves the description of this event.
|
int |
getDuration()
Gets the duration of this event.
|
int |
getDurationExcludingSubEvents()
Gets the duration of this event, minus the sum of the durations of its direct sub-events.
|
String |
getResultMessage()
Retrieves the result message of this event.
|
long |
getStartTime() |
List<ProcessTraceEvent> |
getSubEvents()
Gets the sub-events of this event.
|
String |
getType()
Gets the type of event.
|
void |
setComponentName(String aName) |
void |
setDescription(String aDescription) |
void |
setDuration(int aDuration) |
void |
setResultMessage(String aResultMessage) |
void |
setStartTime(long aStartTime) |
void |
setType(String aType) |
String |
toString()
Generates a user-readable representation of this event and its sub-events.
|
void |
toString(StringBuffer aBuf,
int aIndentLevel)
Generates a user-readable representation of this event and its subevents, using the given
indentation level and writing to a StringBuffer.
|
void |
toString(StringBuffer aBuf,
int aIndentLevel,
int aTotalTime)
Generates a user-readable representation of this event and its subevents, using the given
indentation level and writing to a StringBuffer.
|
protected void |
writeTabs(int aNumTabs,
StringBuffer aBuf)
Writes tabs to a StringBuffer
|
public ProcessTraceEvent_impl()
public ProcessTraceEvent_impl(String aComponentName, String aType, String aDescription)
aComponentName
- name of Component generating this eventaType
- type of event. Standard event types are defined as constants on the
ProcessTraceEvent
interface, but any string is allowed.aDescription
- description of eventpublic String getComponentName()
ProcessTraceEvent
getComponentName
in interface ProcessTraceEvent
ProcessTraceEvent.getComponentName()
public void setComponentName(String aName)
aName
- the component name for this eventpublic String getType()
ProcessTraceEvent
getType
in interface ProcessTraceEvent
ProcessTraceEvent.getType()
public void setType(String aType)
aType
- the type of this eventpublic String getDescription()
ProcessTraceEvent
getDescription
in interface ProcessTraceEvent
ProcessTraceEvent.getDescription()
public void setDescription(String aDescription)
aDescription
- the description for this eventpublic int getDuration()
ProcessTraceEvent
getDuration
in interface ProcessTraceEvent
ProcessTraceEvent.getDuration()
public void setDuration(int aDuration)
aDuration
- the duration for this eventpublic void addToDuration(long aAdditionalDuration)
aAdditionalDuration
- Adds this to the duration of this eventpublic String getResultMessage()
ProcessTraceEvent
getResultMessage
in interface ProcessTraceEvent
ProcessTraceEvent.getResultMessage()
public void setResultMessage(String aResultMessage)
aResultMessage
- the Result Message for this eventpublic List<ProcessTraceEvent> getSubEvents()
ProcessTraceEvent
getSubEvents
in interface ProcessTraceEvent
ProcessTraceEvent
objectsProcessTraceEvent.getSubEvents()
public void addSubEvent(ProcessTraceEvent aEvent)
aEvent
- Adds this sub-event to this event.public String toString()
ProcessTraceEvent
toString
in interface ProcessTraceEvent
toString
in class Object
ProcessTraceEvent.toString()
public void toString(StringBuffer aBuf, int aIndentLevel)
ProcessTraceEvent
toString
in interface ProcessTraceEvent
aBuf
- string buffer to add toaIndentLevel
- indentation levelProcessTraceEvent.toString(StringBuffer,int)
public void toString(StringBuffer aBuf, int aIndentLevel, int aTotalTime)
ProcessTraceEvent
toString
in interface ProcessTraceEvent
aBuf
- string buffer to add toaIndentLevel
- indentation levelaTotalTime
- total time, used to calculate percentags. If not known, pass 0.ProcessTraceEvent.toString(java.lang.StringBuffer, int, int)
public int getDurationExcludingSubEvents()
ProcessTraceEvent
getDurationExcludingSubEvents
in interface ProcessTraceEvent
ProcessTraceEvent.getDurationExcludingSubEvents()
public long getStartTime()
public void setStartTime(long aStartTime)
protected void writeTabs(int aNumTabs, StringBuffer aBuf)
aNumTabs
- number of tabs to printaBuf
- the buffer to write toCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.