Package org.apache.uima.aae.controller
Class AnalysisEngineControllerAdapter
java.lang.Object
org.apache.uima.aae.controller.AnalysisEngineControllerAdapter
- All Implemented Interfaces:
AnalysisEngineController,ControllerLifecycle
- Direct Known Subclasses:
UimacppServiceController
public abstract class AnalysisEngineControllerAdapter
extends Object
implements AnalysisEngineController
Abstract class meant to provide default implementations for AnalysisEngineController instances.
-
Field Summary
Fields inherited from interface org.apache.uima.aae.controller.AnalysisEngineController
AEInstanceCount, CasPoolSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAbortedCasReferenceId(String casReferenceId) voidRegister one or more listeners through which the controller can send notification of events.voidaddEndpointToDoNotProcessList(String anEndpointName) voidaddInputChannel(InputChannel anInputChannel) voidaddServiceInfo(ServiceInfo serviceInfo) voidaddTimeSnapshot(long snapshot, String key) voidbeginProcess(int msgType) voidcacheClientEndpoint(Endpoint anEndpoint) voidvoidcollectionProcessComplete(Endpoint anEndpoint) voidvoiddropCAS(org.apache.uima.cas.CAS acas) voidvoidendProcess(int msgType) voidvoidlonggetCasStatistics(String casReferenceId) org.apache.uima.UimaContextgetChildUimaContext(String delegateEndpointName) longlonglonggetIdleTimeBetweenProcessCalls(int msgType) intgetIndex()getInputChannel(String queueName) getName()getReplyInputChannel(String delegateKey) longgetState()getStats()longlonggetTimeSnapshot(String key) getTransport(String key) getTransport(UimaAsContext context, String key) getUimaMessageListener(String delegateKey) voidhandleDelegateLifeCycleEvent(String anEndpoint, int delegateCount) voidincrementDeserializationTime(long cpuTime) voidincrementSerializationTime(long cpuTime) voidvoidinitializeVMTransport(int parentControllerReplyConsumerCount) booleanbooleanbooleanisEndpointOnDontProcessList(String anEndpointName) booleanbooleanReturns true if the AnalysisEngineController has been (or is in the process of) shutdown.booleanvoidvoidvoidvoidprocess(org.apache.uima.cas.CAS acas, String anInputCasReferenceId, String newCasReferenceId, String newCASProducedBy) voidabstract voidvoidregisterVmQueueWithJMX(Object o, String name) voidreleaseNextCas(String casReferenceId) voidRemoves named application listener.voidsaveReplyTime(long snapshot, String key) voidvoidsendMetadata(Endpoint anEndpoint) voidsetCasManager(AsynchAECasManager casManager) voidsetDeployDescriptor(String deployDescriptor) voidsetInputChannel(InputChannel anInputChannel) voidsetOutputChannel(OutputChannel anOutputChannel) voidCalled to set the state of the AnalysisEngineController to STOPPED.voidsetUimaEEAdminContext(UimaEEAdminContext anAdminContext) voidstop()voidtakeAction(String anAction, String anEndpointName, ErrorContext anErrorContext) voidCalled to initiate shutdown of the Asynchronous Service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.aae.controller.AnalysisEngineController
dumpState, getKey
-
Constructor Details
-
AnalysisEngineControllerAdapter
public AnalysisEngineControllerAdapter()
-
-
Method Details
-
addAbortedCasReferenceId
- Specified by:
addAbortedCasReferenceIdin interfaceAnalysisEngineController
-
addInputChannel
- Specified by:
addInputChannelin interfaceAnalysisEngineController- Throws:
Exception
-
addServiceInfo
- Specified by:
addServiceInfoin interfaceAnalysisEngineController
-
addTimeSnapshot
-
beginProcess
public void beginProcess(int msgType) - Specified by:
beginProcessin interfaceAnalysisEngineController
-
cacheClientEndpoint
- Specified by:
cacheClientEndpointin interfaceAnalysisEngineController
-
collectionProcessComplete
- Specified by:
collectionProcessCompletein interfaceAnalysisEngineController- Throws:
AsynchAEException
-
dropCAS
- Specified by:
dropCASin interfaceAnalysisEngineController
-
dropCAS
public void dropCAS(org.apache.uima.cas.CAS acas) - Specified by:
dropCASin interfaceAnalysisEngineController
-
dropStats
- Specified by:
dropStatsin interfaceAnalysisEngineController
-
endProcess
public void endProcess(int msgType) - Specified by:
endProcessin interfaceAnalysisEngineController
-
forceTimeoutOnPendingCases
- Specified by:
forceTimeoutOnPendingCasesin interfaceAnalysisEngineController
-
getAnalysisTime
public long getAnalysisTime()- Specified by:
getAnalysisTimein interfaceAnalysisEngineController
-
getCasManagerWrapper
- Specified by:
getCasManagerWrapperin interfaceAnalysisEngineController
-
getCasStatistics
- Specified by:
getCasStatisticsin interfaceAnalysisEngineController
-
getChildUimaContext
public org.apache.uima.UimaContext getChildUimaContext(String delegateEndpointName) throws Exception - Specified by:
getChildUimaContextin interfaceAnalysisEngineController- Throws:
Exception
-
getClientEndpoint
- Specified by:
getClientEndpointin interfaceAnalysisEngineController
-
getComponentName
- Specified by:
getComponentNamein interfaceAnalysisEngineController
-
getDeadClientMap
- Specified by:
getDeadClientMapin interfaceAnalysisEngineController
-
getControllerLatch
- Specified by:
getControllerLatchin interfaceAnalysisEngineController
-
getCpuTime
public long getCpuTime()- Specified by:
getCpuTimein interfaceAnalysisEngineController
-
getErrorHandlerChain
- Specified by:
getErrorHandlerChainin interfaceAnalysisEngineController
-
getEventListener
- Specified by:
getEventListenerin interfaceAnalysisEngineController
-
getIdleTime
public long getIdleTime()- Specified by:
getIdleTimein interfaceAnalysisEngineController
-
getIdleTimeBetweenProcessCalls
public long getIdleTimeBetweenProcessCalls(int msgType) - Specified by:
getIdleTimeBetweenProcessCallsin interfaceAnalysisEngineController
-
getInProcessCache
- Specified by:
getInProcessCachein interfaceAnalysisEngineController
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceAnalysisEngineController
-
getInputChannel
- Specified by:
getInputChannelin interfaceAnalysisEngineController
-
getInputChannel
- Specified by:
getInputChannelin interfaceAnalysisEngineController
-
getJMXDomain
- Specified by:
getJMXDomainin interfaceAnalysisEngineController
-
getJmxContext
- Specified by:
getJmxContextin interfaceAnalysisEngineController
-
getLocalCache
- Specified by:
getLocalCachein interfaceAnalysisEngineController
-
getManagementInterface
- Specified by:
getManagementInterfacein interfaceAnalysisEngineController
-
getMonitor
- Specified by:
getMonitorin interfaceAnalysisEngineController
-
getName
- Specified by:
getNamein interfaceAnalysisEngineController
-
getOutputChannel
- Specified by:
getOutputChannelin interfaceAnalysisEngineController
-
getParentController
- Specified by:
getParentControllerin interfaceAnalysisEngineController
-
getReplyInputChannel
- Specified by:
getReplyInputChannelin interfaceAnalysisEngineController
-
getReplyTime
public long getReplyTime()- Specified by:
getReplyTimein interfaceAnalysisEngineController
-
getServiceEndpointName
- Specified by:
getServiceEndpointNamein interfaceAnalysisEngineController
-
getServiceErrors
- Specified by:
getServiceErrorsin interfaceAnalysisEngineController
-
getServiceInfo
- Specified by:
getServiceInfoin interfaceAnalysisEngineController
-
getServicePerformance
- Specified by:
getServicePerformancein interfaceAnalysisEngineController
-
getStats
- Specified by:
getStatsin interfaceAnalysisEngineController
-
getTime
- Specified by:
getTimein interfaceAnalysisEngineController
-
getTimeSnapshot
-
getTransport
- Specified by:
getTransportin interfaceAnalysisEngineController- Throws:
Exception
-
getTransport
- Specified by:
getTransportin interfaceAnalysisEngineController- Throws:
Exception
-
getUimaEEAdminContext
- Specified by:
getUimaEEAdminContextin interfaceAnalysisEngineController
-
getUimaMessageListener
- Specified by:
getUimaMessageListenerin interfaceAnalysisEngineController
-
handleDelegateLifeCycleEvent
- Specified by:
handleDelegateLifeCycleEventin interfaceAnalysisEngineController
-
incrementDeserializationTime
public void incrementDeserializationTime(long cpuTime) - Specified by:
incrementDeserializationTimein interfaceAnalysisEngineController
-
incrementSerializationTime
public void incrementSerializationTime(long cpuTime) - Specified by:
incrementSerializationTimein interfaceAnalysisEngineController
-
initialize
- Specified by:
initializein interfaceAnalysisEngineController- Throws:
AsynchAEException
-
initializeVMTransport
- Specified by:
initializeVMTransportin interfaceAnalysisEngineController- Throws:
Exception
-
isAwaitingCacheCallbackNotification
public boolean isAwaitingCacheCallbackNotification()- Specified by:
isAwaitingCacheCallbackNotificationin interfaceAnalysisEngineController
-
isCasMultiplier
public boolean isCasMultiplier()- Specified by:
isCasMultiplierin interfaceAnalysisEngineController
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitivein interfaceAnalysisEngineController
-
isStopped
public boolean isStopped()Description copied from interface:AnalysisEngineControllerReturns true if the AnalysisEngineController has been (or is in the process of) shutdown.- Specified by:
isStoppedin interfaceAnalysisEngineController- Returns:
- - true if stopped
-
isTopLevelComponent
public boolean isTopLevelComponent()- Specified by:
isTopLevelComponentin interfaceAnalysisEngineController
-
notifyListenersWithInitializationStatus
- Specified by:
notifyListenersWithInitializationStatusin interfaceAnalysisEngineController
-
onInitialize
public void onInitialize()- Specified by:
onInitializein interfaceAnalysisEngineController
-
process
- Specified by:
processin interfaceAnalysisEngineController
-
process
public void process(org.apache.uima.cas.CAS acas, String anInputCasReferenceId, String newCasReferenceId, String newCASProducedBy) - Specified by:
processin interfaceAnalysisEngineController
-
process
- Specified by:
processin interfaceAnalysisEngineController
-
quiesceAndStop
public abstract void quiesceAndStop()- Specified by:
quiesceAndStopin interfaceAnalysisEngineController
-
registerVmQueueWithJMX
- Specified by:
registerVmQueueWithJMXin interfaceAnalysisEngineController- Throws:
Exception
-
releaseNextCas
- Specified by:
releaseNextCasin interfaceAnalysisEngineController
-
saveReplyTime
- Specified by:
saveReplyTimein interfaceAnalysisEngineController
-
saveTime
- Specified by:
saveTimein interfaceAnalysisEngineController
-
sendMetadata
- Specified by:
sendMetadatain interfaceAnalysisEngineController- Throws:
AsynchAEException
-
setCasManager
- Specified by:
setCasManagerin interfaceAnalysisEngineController
-
setDeployDescriptor
- Specified by:
setDeployDescriptorin interfaceAnalysisEngineController
-
setInputChannel
- Specified by:
setInputChannelin interfaceAnalysisEngineController- Throws:
Exception
-
setOutputChannel
- Specified by:
setOutputChannelin interfaceAnalysisEngineController- Throws:
Exception
-
setStopped
public void setStopped()Description copied from interface:AnalysisEngineControllerCalled to set the state of the AnalysisEngineController to STOPPED. This method does not stop input or output channels.- Specified by:
setStoppedin interfaceAnalysisEngineController
-
setUimaEEAdminContext
- Specified by:
setUimaEEAdminContextin interfaceAnalysisEngineController
-
stop
public void stop()- Specified by:
stopin interfaceAnalysisEngineController
-
takeAction
- Specified by:
takeActionin interfaceAnalysisEngineController
-
addControllerCallbackListener
Description copied from interface:ControllerLifecycleRegister one or more listeners through which the controller can send notification of events.- Specified by:
addControllerCallbackListenerin interfaceControllerLifecycle- Parameters:
listener- - application listener object to register
-
removeControllerCallbackListener
Description copied from interface:ControllerLifecycleRemoves named application listener.- Specified by:
removeControllerCallbackListenerin interfaceControllerLifecycle- Parameters:
listener- - application listener to remove
-
terminate
public void terminate()Description copied from interface:ControllerLifecycleCalled to initiate shutdown of the Asynchronous Service. An implementation can close an input and output channels and do any necessary cleanup before terminating.- Specified by:
terminatein interfaceControllerLifecycle
-
addEndpointToDoNotProcessList
-
isEndpointOnDontProcessList
-
evictExpiredEntries
public void evictExpiredEntries() -
changeState
- Specified by:
changeStatein interfaceAnalysisEngineController
-
getState
- Specified by:
getStatein interfaceAnalysisEngineController
-