|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.util.impl.ProcessTraceEvent_impl
public class ProcessTraceEvent_impl
Reference implementation of ProcessTraceEvent
.
Field Summary |
---|
Fields inherited from interface org.apache.uima.util.ProcessTraceEvent |
---|
ANALYSIS, ANALYSIS_ENGINE, SERVICE, SERVICE_CALL |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 eventMethod Detail |
---|
public java.lang.String getComponentName()
ProcessTraceEvent
getComponentName
in interface ProcessTraceEvent
ProcessTraceEvent.getComponentName()
public void setComponentName(java.lang.String aName)
public java.lang.String getType()
ProcessTraceEvent
getType
in interface ProcessTraceEvent
ProcessTraceEvent.getType()
public void setType(java.lang.String aType)
public java.lang.String getDescription()
ProcessTraceEvent
getDescription
in interface ProcessTraceEvent
ProcessTraceEvent.getDescription()
public void setDescription(java.lang.String aDescription)
public int getDuration()
ProcessTraceEvent
getDuration
in interface ProcessTraceEvent
ProcessTraceEvent.getDuration()
public void setDuration(int aDuration)
public void addToDuration(long aAdditionalDuration)
public java.lang.String getResultMessage()
ProcessTraceEvent
getResultMessage
in interface ProcessTraceEvent
ProcessTraceEvent.getResultMessage()
public void setResultMessage(java.lang.String aResultMessage)
public java.util.List<ProcessTraceEvent> getSubEvents()
ProcessTraceEvent
getSubEvents
in interface ProcessTraceEvent
ProcessTraceEvent
objectsProcessTraceEvent.getSubEvents()
public void addSubEvent(ProcessTraceEvent aEvent)
public java.lang.String toString()
ProcessTraceEvent
toString
in interface ProcessTraceEvent
toString
in class java.lang.Object
ProcessTraceEvent.toString()
public void toString(java.lang.StringBuffer aBuf, int aIndentLevel)
ProcessTraceEvent
toString
in interface ProcessTraceEvent
aBuf
- string buffer to add toaIndentLevel
- indentation levelProcessTraceEvent.toString(StringBuffer,int)
public void toString(java.lang.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, java.lang.StringBuffer aBuf)
aNumTabs
- number of tabs to printaBuf
- the buffer to write to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |