public class InstrumentationFacility_impl extends Object implements InstrumentationFacility
InstrumentationFacility.| Constructor and Description |
|---|
InstrumentationFacility_impl(ProcessTrace aProcessTrace)
Creates a new InstrumentationFacility_impl.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setProcessTrace(ProcessTrace aProcessTrace)
Sets the process trace object wrapped by this instrumentation facility.
|
void |
startEvent(String aComponentName,
String aEventType,
String aDescription)
Records the start of an event.
|
public InstrumentationFacility_impl(ProcessTrace aProcessTrace)
aProcessTrace - the process trace object in which to record instrumentation information.public void startEvent(String aComponentName, String aEventType, String aDescription)
InstrumentationFacilityInstrumentationFacility.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.startEvent in interface InstrumentationFacilityaComponentName - 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 eventInstrumentationFacility.startEvent(java.lang.String,
java.lang.String, java.lang.String)public void endEvent(String aComponentName, String aEventType, String aResultMessage)
InstrumentationFacilityUIMA_IllegalStateException will be
thrown.endEvent in interface InstrumentationFacilityaComponentName - 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 eventInstrumentationFacility.endEvent(java.lang.String, java.lang.String,
java.lang.String)public void addEvent(String aResourceName, String aType, String aDescription, int aDuration, String aResultMsg)
InstrumentationFacilityaddEvent in interface InstrumentationFacilityaResourceName - 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 eventInstrumentationFacility.addEvent(java.lang.String, java.lang.String,
java.lang.String, int, java.lang.String)public void setProcessTrace(ProcessTrace aProcessTrace)
aProcessTrace - -Copyright © 2018. All rights reserved.