Package org.apache.uima.aae.controller
Interface AnalysisEngineController
-
- All Superinterfaces:
ControllerLifecycle
- All Known Subinterfaces:
AggregateAnalysisEngineController,PrimitiveAnalysisEngineController
- All Known Implementing Classes:
AggregateAnalysisEngineController_impl,AnalysisEngineControllerAdapter,BaseAnalysisEngineController,PrimitiveAnalysisEngineController_impl,UimacppServiceController
public interface AnalysisEngineController extends ControllerLifecycle
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAEInstanceCountstatic java.lang.StringCasPoolSize
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAbortedCasReferenceId(java.lang.String aCasReferenceId)voidaddInputChannel(InputChannel anInputChannel)voidaddServiceInfo(ServiceInfo aServiceInfo)voidbeginProcess(int msgType)voidcacheClientEndpoint(Endpoint anEndpoint)voidchangeState(BaseAnalysisEngineController.ServiceState state)voidcollectionProcessComplete(Endpoint anEndpoint)voiddropCAS(java.lang.String aCasReferenceId, boolean dropCacheEntry)voiddropCAS(org.apache.uima.cas.CAS aCAS)voiddropStats(java.lang.String aCasReferenceId, java.lang.String anEndpointName)voiddumpState(java.lang.StringBuffer buffer, java.lang.String lbl1)voidendProcess(int msgType)voidforceTimeoutOnPendingCases(java.lang.String key)longgetAnalysisTime()AsynchAECasManagergetCasManagerWrapper()ServicePerformancegetCasStatistics(java.lang.String aCasReferenceId)org.apache.uima.UimaContextgetChildUimaContext(java.lang.String aDelegateEndpointName)EndpointgetClientEndpoint()java.lang.StringgetComponentName()ControllerLatchgetControllerLatch()longgetCpuTime()java.util.Map<java.lang.String,java.lang.String>getDeadClientMap()ErrorHandlerChaingetErrorHandlerChain()EventSubscribergetEventListener()longgetIdleTime()longgetIdleTimeBetweenProcessCalls(int msgType)intgetIndex()InProcessCachegetInProcessCache()InputChannelgetInputChannel()InputChannelgetInputChannel(java.lang.String aQueueName)java.lang.StringgetJmxContext()java.lang.StringgetJMXDomain()java.lang.StringgetKey()LocalCachegetLocalCache()JmxManagementgetManagementInterface()MonitorgetMonitor()java.lang.StringgetName()OutputChannelgetOutputChannel()AnalysisEngineControllergetParentController()InputChannelgetReplyInputChannel(java.lang.String aDelegateKey)longgetReplyTime()java.lang.StringgetServiceEndpointName()ServiceErrorsgetServiceErrors()ServiceInfogetServiceInfo()ServicePerformancegetServicePerformance()BaseAnalysisEngineController.ServiceStategetState()java.util.MapgetStats()longgetTime(java.lang.String aCasReferenceId, java.lang.String anEndpointName)UimaTransportgetTransport(java.lang.String aKey)UimaTransportgetTransport(UimaAsContext aContext, java.lang.String aKey)UimaEEAdminContextgetUimaEEAdminContext()UimaMessageListenergetUimaMessageListener(java.lang.String aDelegateKey)voidhandleDelegateLifeCycleEvent(java.lang.String anEndpoint, int aDelegateCount)voidincrementDeserializationTime(long cpuTime)voidincrementSerializationTime(long cpuTime)voidinitialize()voidinitializeVMTransport(int parentControllerReplyConsumerCount)booleanisAwaitingCacheCallbackNotification()booleanisCasMultiplier()booleanisPrimitive()booleanisStopped()Returns true if the AnalysisEngineController has been (or is in the process of) shutdown.booleanisTopLevelComponent()voidnotifyListenersWithInitializationStatus(java.lang.Exception e)voidonInitialize()voidprocess(org.apache.uima.cas.CAS aCas, java.lang.String aCasId)voidprocess(org.apache.uima.cas.CAS aCAS, java.lang.String anInputCasReferenceId, java.lang.String aNewCasReferenceId, java.lang.String newCASProducedBy)voidprocess(org.apache.uima.cas.CAS aCAS, java.lang.String aCasReferenceId, Endpoint anEndpoint)voidquiesceAndStop()voidregisterVmQueueWithJMX(java.lang.Object o, java.lang.String aName)voidreleaseNextCas(java.lang.String aCasReferenceId)voidsaveReplyTime(long snapshot, java.lang.String aKey)voidsaveTime(long anArrivalTime, java.lang.String aCasReferenceId, java.lang.String anEndpointName)voidsendMetadata(Endpoint anEndpoint)voidsetCasManager(AsynchAECasManager aCasManager)voidsetDeployDescriptor(java.lang.String aDeployDescriptor)voidsetInputChannel(InputChannel anInputChannel)voidsetOutputChannel(OutputChannel anOutputChannel)voidsetStopped()Called to set the state of the AnalysisEngineController to STOPPED.voidsetUimaEEAdminContext(UimaEEAdminContext anAdminContext)voidstop()voidtakeAction(java.lang.String anAction, java.lang.String anEndpointName, ErrorContext anErrorContext)-
Methods inherited from interface org.apache.uima.aae.controller.ControllerLifecycle
addControllerCallbackListener, removeControllerCallbackListener, terminate
-
-
-
-
Field Detail
-
CasPoolSize
static final java.lang.String CasPoolSize
- See Also:
- Constant Field Values
-
AEInstanceCount
static final java.lang.String AEInstanceCount
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendMetadata
void sendMetadata(Endpoint anEndpoint) throws AsynchAEException
- Throws:
AsynchAEException
-
getControllerLatch
ControllerLatch getControllerLatch()
-
setInputChannel
void setInputChannel(InputChannel anInputChannel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addInputChannel
void addInputChannel(InputChannel anInputChannel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getServiceEndpointName
java.lang.String getServiceEndpointName()
-
handleDelegateLifeCycleEvent
void handleDelegateLifeCycleEvent(java.lang.String anEndpoint, int aDelegateCount)
-
takeAction
void takeAction(java.lang.String anAction, java.lang.String anEndpointName, ErrorContext anErrorContext)
-
getInputChannel
InputChannel getInputChannel()
-
getInputChannel
InputChannel getInputChannel(java.lang.String aQueueName)
-
saveReplyTime
void saveReplyTime(long snapshot, java.lang.String aKey)
-
getReplyTime
long getReplyTime()
-
getStats
java.util.Map getStats()
-
getChildUimaContext
org.apache.uima.UimaContext getChildUimaContext(java.lang.String aDelegateEndpointName) throws java.lang.Exception- Throws:
java.lang.Exception
-
dropCAS
void dropCAS(java.lang.String aCasReferenceId, boolean dropCacheEntry)
-
dropCAS
void dropCAS(org.apache.uima.cas.CAS aCAS)
-
getInProcessCache
InProcessCache getInProcessCache()
-
isPrimitive
boolean isPrimitive()
-
getMonitor
Monitor getMonitor()
-
getName
java.lang.String getName()
-
getComponentName
java.lang.String getComponentName()
-
collectionProcessComplete
void collectionProcessComplete(Endpoint anEndpoint) throws AsynchAEException
- Throws:
AsynchAEException
-
isTopLevelComponent
boolean isTopLevelComponent()
-
initialize
void initialize() throws AsynchAEException- Throws:
AsynchAEException
-
process
void process(org.apache.uima.cas.CAS aCas, java.lang.String aCasId)
-
process
void process(org.apache.uima.cas.CAS aCAS, java.lang.String anInputCasReferenceId, java.lang.String aNewCasReferenceId, java.lang.String newCASProducedBy)
-
process
void process(org.apache.uima.cas.CAS aCAS, java.lang.String aCasReferenceId, Endpoint anEndpoint)
-
saveTime
void saveTime(long anArrivalTime, java.lang.String aCasReferenceId, java.lang.String anEndpointName)
-
getTime
long getTime(java.lang.String aCasReferenceId, java.lang.String anEndpointName)
-
getErrorHandlerChain
ErrorHandlerChain getErrorHandlerChain()
-
setOutputChannel
void setOutputChannel(OutputChannel anOutputChannel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getOutputChannel
OutputChannel getOutputChannel()
-
setCasManager
void setCasManager(AsynchAECasManager aCasManager)
-
getCasManagerWrapper
AsynchAECasManager getCasManagerWrapper()
-
stop
void stop()
-
isStopped
boolean isStopped()
Returns true if the AnalysisEngineController has been (or is in the process of) shutdown.- Returns:
- - true if stopped
-
setStopped
void setStopped()
Called to set the state of the AnalysisEngineController to STOPPED. This method does not stop input or output channels.
-
dropStats
void dropStats(java.lang.String aCasReferenceId, java.lang.String anEndpointName)
-
setUimaEEAdminContext
void setUimaEEAdminContext(UimaEEAdminContext anAdminContext)
-
getUimaEEAdminContext
UimaEEAdminContext getUimaEEAdminContext()
-
getJMXDomain
java.lang.String getJMXDomain()
-
getIndex
int getIndex()
-
getJmxContext
java.lang.String getJmxContext()
-
getServicePerformance
ServicePerformance getServicePerformance()
-
getServiceInfo
ServiceInfo getServiceInfo()
-
addServiceInfo
void addServiceInfo(ServiceInfo aServiceInfo)
-
getServiceErrors
ServiceErrors getServiceErrors()
-
setDeployDescriptor
void setDeployDescriptor(java.lang.String aDeployDescriptor)
-
cacheClientEndpoint
void cacheClientEndpoint(Endpoint anEndpoint)
-
getClientEndpoint
Endpoint getClientEndpoint()
-
getEventListener
EventSubscriber getEventListener()
-
getManagementInterface
JmxManagement getManagementInterface()
-
notifyListenersWithInitializationStatus
void notifyListenersWithInitializationStatus(java.lang.Exception e)
-
getCasStatistics
ServicePerformance getCasStatistics(java.lang.String aCasReferenceId)
-
isCasMultiplier
boolean isCasMultiplier()
-
releaseNextCas
void releaseNextCas(java.lang.String aCasReferenceId)
-
getIdleTime
long getIdleTime()
-
beginProcess
void beginProcess(int msgType)
-
endProcess
void endProcess(int msgType)
-
getIdleTimeBetweenProcessCalls
long getIdleTimeBetweenProcessCalls(int msgType)
-
getCpuTime
long getCpuTime()
-
getAnalysisTime
long getAnalysisTime()
-
incrementSerializationTime
void incrementSerializationTime(long cpuTime)
-
incrementDeserializationTime
void incrementDeserializationTime(long cpuTime)
-
onInitialize
void onInitialize()
-
getUimaMessageListener
UimaMessageListener getUimaMessageListener(java.lang.String aDelegateKey)
-
getTransport
UimaTransport getTransport(UimaAsContext aContext, java.lang.String aKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTransport
UimaTransport getTransport(java.lang.String aKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
initializeVMTransport
void initializeVMTransport(int parentControllerReplyConsumerCount) throws java.lang.Exception- Throws:
java.lang.Exception
-
getReplyInputChannel
InputChannel getReplyInputChannel(java.lang.String aDelegateKey)
-
getLocalCache
LocalCache getLocalCache()
-
registerVmQueueWithJMX
void registerVmQueueWithJMX(java.lang.Object o, java.lang.String aName) throws java.lang.Exception- Throws:
java.lang.Exception
-
getParentController
AnalysisEngineController getParentController()
-
addAbortedCasReferenceId
void addAbortedCasReferenceId(java.lang.String aCasReferenceId)
-
isAwaitingCacheCallbackNotification
boolean isAwaitingCacheCallbackNotification()
-
quiesceAndStop
void quiesceAndStop()
-
forceTimeoutOnPendingCases
void forceTimeoutOnPendingCases(java.lang.String key)
-
changeState
void changeState(BaseAnalysisEngineController.ServiceState state)
-
getState
BaseAnalysisEngineController.ServiceState getState()
-
getDeadClientMap
java.util.Map<java.lang.String,java.lang.String> getDeadClientMap()
-
getKey
java.lang.String getKey()
-
dumpState
void dumpState(java.lang.StringBuffer buffer, java.lang.String lbl1)
-
-