Package org.apache.uima.collection.impl
Class EntityProcessStatusImpl
- java.lang.Object
-
- org.apache.uima.collection.impl.EntityProcessStatusImpl
-
- All Implemented Interfaces:
java.io.Serializable,EntityProcessStatus
public class EntityProcessStatusImpl extends java.lang.Object implements EntityProcessStatus
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classEntityProcessStatusImpl.EventLog
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashMapeventMap(package private) java.util.ListexceptionList(package private) java.util.ListfailedListbooleanisProcessedprivate booleanisSkipped(package private) ProcessTraceprT(package private) java.util.HashMapresultHMprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description EntityProcessStatusImpl(ProcessTrace p)EntityProcessStatusImpl(ProcessTrace p, boolean aSkip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventStatus(java.lang.String aEventName, java.lang.String aResultS, java.lang.Throwable aE)java.util.ListgetExceptions()Gets the List of Exceptions that occurred during processing of the Entity.java.util.ListgetFailedComponentNames()Gets the name of the components in which Exceptions (if any) occurred.ProcessTracegetProcessTrace()Gets theProcessTraceobject for the Entity's processing.java.lang.StringgetStatusMessage()Gets a message describing the status of the Entity's processing.booleanisEntitySkipped()Gets whether an entity has beed skipped during processingbooleanisException()Gets whether an exception occurred.voidprintEventLog()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
prT
ProcessTrace prT
-
eventMap
java.util.HashMap eventMap
-
exceptionList
java.util.List exceptionList
-
failedList
java.util.List failedList
-
resultHM
java.util.HashMap resultHM
-
isSkipped
private boolean isSkipped
-
isProcessed
public boolean isProcessed
-
-
Constructor Detail
-
EntityProcessStatusImpl
public EntityProcessStatusImpl(ProcessTrace p)
-
EntityProcessStatusImpl
public EntityProcessStatusImpl(ProcessTrace p, boolean aSkip)
-
-
Method Detail
-
isException
public boolean isException()
Description copied from interface:EntityProcessStatusGets whether an exception occurred.- Specified by:
isExceptionin interfaceEntityProcessStatus- Returns:
- true if an exception occurred, false if processing completely successfully with no exceptions.
-
getStatusMessage
public java.lang.String getStatusMessage()
Description copied from interface:EntityProcessStatusGets a message describing the status of the Entity's processing.- Specified by:
getStatusMessagein interfaceEntityProcessStatus- Returns:
- the status message
-
getExceptions
public java.util.List getExceptions()
Description copied from interface:EntityProcessStatusGets the List of Exceptions that occurred during processing of the Entity.- Specified by:
getExceptionsin interfaceEntityProcessStatus- Returns:
- the List of Exceptions,
nullif none
-
getFailedComponentNames
public java.util.List getFailedComponentNames()
Description copied from interface:EntityProcessStatusGets the name of the components in which Exceptions (if any) occurred. These could be the Analysis Engine or one or more of the CasConsumers.- Specified by:
getFailedComponentNamesin interfaceEntityProcessStatus- Returns:
- the name of the components that failed,
nullif there was no failure
-
addEventStatus
public void addEventStatus(java.lang.String aEventName, java.lang.String aResultS, java.lang.Throwable aE)
-
getProcessTrace
public ProcessTrace getProcessTrace()
Description copied from interface:EntityProcessStatusGets theProcessTraceobject for the Entity's processing. TheProcessTraceobject contains a record of each component involved in the processing and how much time that component took to complete its processing.- Specified by:
getProcessTracein interfaceEntityProcessStatus- Returns:
- the object containing trace and timing information for the Entity's processing.
-
printEventLog
public void printEventLog()
-
isEntitySkipped
public boolean isEntitySkipped()
Gets whether an entity has beed skipped during processing- Specified by:
isEntitySkippedin interfaceEntityProcessStatus- Returns:
- true if an entity was skipped, false otherwise
-
-