public class ProcessTraceEvent_impl extends java.lang.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(java.lang.String aComponentName,
java.lang.String aType,
java.lang.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)
Adds a sub-event to this event.
|
void |
addToDuration(long aAdditionalDuration)
Adds to the duration of this event
|
java.lang.String |
getComponentName()
Retrieves the name of the component that is performing this event.
|
java.lang.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.
|
java.lang.String |
getResultMessage()
Retrieves the result message of this event.
|
long |
getStartTime() |
java.util.List<ProcessTraceEvent> |
getSubEvents()
Gets the sub-events of this event.
|
java.lang.String |
getType()
Gets the type of event.
|
void |
setComponentName(java.lang.String aName)
Sets the component name for this event
|
void |
setDescription(java.lang.String aDescription)
Sets the description for this event
|
void |
setDuration(int aDuration)
Sets the duration for this event
|
void |
setResultMessage(java.lang.String aResultMessage)
Sets the Result Message for this event
|
void |
setStartTime(long aStartTime) |
void |
setType(java.lang.String aType)
Sets the type of this event
|
java.lang.String |
toString()
Generates a user-readable representation of this event and its sub-events.
|
void |
toString(java.lang.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(java.lang.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,
java.lang.StringBuffer aBuf)
Writes tabs to a StringBuffer
|
public ProcessTraceEvent_impl()
public ProcessTraceEvent_impl(java.lang.String aComponentName,
java.lang.String aType,
java.lang.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 java.lang.String getComponentName()
ProcessTraceEventgetComponentName in interface ProcessTraceEventProcessTraceEvent.getComponentName()public void setComponentName(java.lang.String aName)
public java.lang.String getType()
ProcessTraceEventgetType in interface ProcessTraceEventProcessTraceEvent.getType()public void setType(java.lang.String aType)
public java.lang.String getDescription()
ProcessTraceEventgetDescription in interface ProcessTraceEventProcessTraceEvent.getDescription()public void setDescription(java.lang.String aDescription)
public int getDuration()
ProcessTraceEventgetDuration in interface ProcessTraceEventProcessTraceEvent.getDuration()public void setDuration(int aDuration)
public void addToDuration(long aAdditionalDuration)
public java.lang.String getResultMessage()
ProcessTraceEventgetResultMessage in interface ProcessTraceEventProcessTraceEvent.getResultMessage()public void setResultMessage(java.lang.String aResultMessage)
public java.util.List<ProcessTraceEvent> getSubEvents()
ProcessTraceEventgetSubEvents in interface ProcessTraceEventProcessTraceEvent objectsProcessTraceEvent.getSubEvents()public void addSubEvent(ProcessTraceEvent aEvent)
public java.lang.String toString()
ProcessTraceEventtoString in interface ProcessTraceEventtoString in class java.lang.ObjectProcessTraceEvent.toString()public void toString(java.lang.StringBuffer aBuf,
int aIndentLevel)
ProcessTraceEventtoString in interface ProcessTraceEventaBuf - string buffer to add toaIndentLevel - indentation levelProcessTraceEvent.toString(StringBuffer,int)public void toString(java.lang.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,
java.lang.StringBuffer aBuf)
aNumTabs - number of tabs to printaBuf - the buffer to write toCopyright © 2013. All Rights Reserved.