public abstract class HandlerBase extends Object implements Handler
| Constructor and Description |
|---|
HandlerBase(String aName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
aggregateDelegateStats(MessageContext aMessageContext,
String aCasReferenceId) |
protected void |
computeStats(MessageContext aMessageContext,
String aCasReferenceId) |
void |
delegate(MessageContext aMessageContext) |
AnalysisEngineController |
getController() |
Handler |
getDelegate() |
String |
getName() |
void |
handle(Object anObjectToHandle) |
void |
handle(Object anObjectToHandle,
String expectedOutputType) |
boolean |
hasDelegateHandler() |
void |
invokeProcess(org.apache.uima.cas.CAS aCAS,
String anInputCasReferenceId,
String aNewCasReferenceId,
MessageContext aMessageContext,
String aNewCasProducedBy) |
boolean |
isHandlerForMessage(MessageContext aMessageContext,
int anExpectedMessageType,
int anExpectedCommand) |
static ErrorContext |
populateErrorContext(MessageContext aMessageCtx) |
void |
removeDelegate(String aHandlerName) |
void |
resequenceDelegateHandler(String aHandlerName,
int aNewPositionInHandlerChain) |
void |
setController(AnalysisEngineController controller) |
void |
setDelegate(Handler aHandler) |
void |
setParent(Handler aHandler) |
void |
validate(Object anObjectToHandle) |
public HandlerBase(String aName)
public AnalysisEngineController getController()
public void setController(AnalysisEngineController controller)
public static ErrorContext populateErrorContext(MessageContext aMessageCtx)
public void validate(Object anObjectToHandle) throws AsynchAEException
AsynchAEExceptionpublic boolean isHandlerForMessage(MessageContext aMessageContext, int anExpectedMessageType, int anExpectedCommand) throws AsynchAEException
isHandlerForMessage in interface HandlerAsynchAEExceptionpublic void invokeProcess(org.apache.uima.cas.CAS aCAS,
String anInputCasReferenceId,
String aNewCasReferenceId,
MessageContext aMessageContext,
String aNewCasProducedBy)
throws AsynchAEException
invokeProcess in interface HandlerAsynchAEExceptionpublic void delegate(MessageContext aMessageContext) throws AsynchAEException
delegate in interface HandlerAsynchAEExceptionpublic Handler getDelegate()
getDelegate in interface Handlerpublic void setParent(Handler aHandler)
public void setDelegate(Handler aHandler)
setDelegate in interface Handlerpublic boolean hasDelegateHandler()
hasDelegateHandler in interface Handlerpublic void removeDelegate(String aHandlerName)
removeDelegate in interface Handlerpublic void resequenceDelegateHandler(String aHandlerName, int aNewPositionInHandlerChain)
resequenceDelegateHandler in interface Handlerpublic void handle(Object anObjectToHandle) throws AsynchAEException
handle in interface HandlerAsynchAEExceptionpublic void handle(Object anObjectToHandle, String expectedOutputType) throws AsynchAEException
handle in interface HandlerAsynchAEExceptionprotected void aggregateDelegateStats(MessageContext aMessageContext, String aCasReferenceId) throws AsynchAEException
AsynchAEExceptionprotected void computeStats(MessageContext aMessageContext, String aCasReferenceId) throws AsynchAEException
AsynchAEExceptionCopyright © 2016. All rights reserved.