|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstrumentationFacility
The InstrumentationFacility
interface defines a standard way for UIMA components
to be instrumented for performance evaluation. The UIMA framework will provide each UIMA
component with access to an implementation of this interface.
This interface is under development. In its current form, it basically just provides a write-only
interface to a ProcessTrace
object.
Method Summary | |
---|---|
void |
addEvent(String aResourceName,
String aType,
String aDescription,
int aDuration,
String aResultMsg)
Records a completed event with the specified parameters. |
void |
endEvent(String aComponentName,
String aEventType,
String aResultMessage)
Records the end of an event. |
void |
startEvent(String aComponentName,
String aEventType,
String aDescription)
Records the start of an event. |
Method Detail |
---|
void startEvent(String aComponentName, String aEventType, String aDescription)
endEvent(String,String,String)
with the same component name and event type. The
duration of the event will be automatically computed from the difference in time between the
start and end.
aComponentName
- name of the component generating the eventaEventType
- type of the event. Standard types are defined as constants on the
ProcessTraceEvent
interface, but any string may be used.aDescription
- description of the eventvoid endEvent(String aComponentName, String aEventType, String aResultMessage)
UIMA_IllegalStateException
will be
thrown.
aComponentName
- name of the component generating the eventaEventType
- type of the event. Standard types are defined as constants on the
ProcessTraceEvent
interface, but any string may be used.aResultMessage
- describes the result of the event
UIMA_IllegalStateException
- if there is no open event matching the aComponentName
and
aEventType
arguments.void addEvent(String aResourceName, String aType, String aDescription, int aDuration, String aResultMsg)
aResourceName
- name of the component generating the eventaType
- type of the event. Standard types are defined as constants on the
ProcessTraceEvent
interface, but any string may be used.aDescription
- description of the eventaDuration
- duration of the event in millisecondsaResultMsg
- result message of event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |