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()
ProcessTraceEventgetComponentName in interface ProcessTraceEventProcessTraceEvent.getComponentName()public void setComponentName(String aName)
aName - the component name for this eventpublic String getType()
ProcessTraceEventgetType in interface ProcessTraceEventProcessTraceEvent.getType()public void setType(String aType)
aType - the type of this eventpublic String getDescription()
ProcessTraceEventgetDescription in interface ProcessTraceEventProcessTraceEvent.getDescription()public void setDescription(String aDescription)
aDescription - the description for this eventpublic int getDuration()
ProcessTraceEventgetDuration in interface ProcessTraceEventProcessTraceEvent.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()
ProcessTraceEventgetResultMessage in interface ProcessTraceEventProcessTraceEvent.getResultMessage()public void setResultMessage(String aResultMessage)
aResultMessage - the Result Message for this eventpublic List<ProcessTraceEvent> getSubEvents()
ProcessTraceEventgetSubEvents in interface ProcessTraceEventProcessTraceEvent objectsProcessTraceEvent.getSubEvents()public void addSubEvent(ProcessTraceEvent aEvent)
aEvent - Adds this sub-event to this event.public String toString()
ProcessTraceEventtoString in interface ProcessTraceEventtoString in class ObjectProcessTraceEvent.toString()public void toString(StringBuffer aBuf, int aIndentLevel)
ProcessTraceEventtoString in interface ProcessTraceEventaBuf - string buffer to add toaIndentLevel - indentation levelProcessTraceEvent.toString(StringBuffer,int)public void toString(StringBuffer aBuf, int aIndentLevel, int aTotalTime)
ProcessTraceEventtoString in interface ProcessTraceEventaBuf - 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()
ProcessTraceEventgetDurationExcludingSubEvents in interface ProcessTraceEventProcessTraceEvent.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.