public abstract class AnalysisEngineControllerAdapter extends java.lang.Object implements AnalysisEngineController
AEInstanceCount, CasPoolSize| Constructor and Description |
|---|
AnalysisEngineControllerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAbortedCasReferenceId(java.lang.String casReferenceId) |
void |
addControllerCallbackListener(ControllerCallbackListener listener)
Register one or more listeners through which the controller can send notification of events.
|
void |
addEndpointToDoNotProcessList(java.lang.String anEndpointName) |
void |
addInputChannel(InputChannel anInputChannel) |
void |
addServiceInfo(ServiceInfo serviceInfo) |
void |
addTimeSnapshot(long snapshot,
java.lang.String key) |
void |
beginProcess(int msgType) |
void |
cacheClientEndpoint(Endpoint anEndpoint) |
void |
changeState(BaseAnalysisEngineController.ServiceState state) |
void |
collectionProcessComplete(Endpoint anEndpoint) |
void |
dropCAS(org.apache.uima.cas.CAS acas) |
void |
dropCAS(java.lang.String casReferenceId,
boolean dropCacheEntry) |
void |
dropStats(java.lang.String casReferenceId,
java.lang.String anEndpointName) |
void |
endProcess(int msgType) |
void |
evictExpiredEntries() |
void |
forceTimeoutOnPendingCases(java.lang.String key) |
long |
getAnalysisTime() |
AsynchAECasManager |
getCasManagerWrapper() |
ServicePerformance |
getCasStatistics(java.lang.String casReferenceId) |
org.apache.uima.UimaContext |
getChildUimaContext(java.lang.String delegateEndpointName) |
Endpoint |
getClientEndpoint() |
java.lang.String |
getComponentName() |
ControllerLatch |
getControllerLatch() |
long |
getCpuTime() |
java.util.Map<java.lang.String,java.lang.String> |
getDeadClientMap() |
ErrorHandlerChain |
getErrorHandlerChain() |
EventSubscriber |
getEventListener() |
long |
getIdleTime() |
long |
getIdleTimeBetweenProcessCalls(int msgType) |
int |
getIndex() |
InProcessCache |
getInProcessCache() |
InputChannel |
getInputChannel() |
InputChannel |
getInputChannel(java.lang.String queueName) |
java.lang.String |
getJmxContext() |
java.lang.String |
getJMXDomain() |
LocalCache |
getLocalCache() |
JmxManagement |
getManagementInterface() |
Monitor |
getMonitor() |
java.lang.String |
getName() |
OutputChannel |
getOutputChannel() |
AnalysisEngineController |
getParentController() |
InputChannel |
getReplyInputChannel(java.lang.String delegateKey) |
long |
getReplyTime() |
java.lang.String |
getServiceEndpointName() |
ServiceErrors |
getServiceErrors() |
ServiceInfo |
getServiceInfo() |
ServicePerformance |
getServicePerformance() |
BaseAnalysisEngineController.ServiceState |
getState() |
java.util.Map |
getStats() |
long |
getTime(java.lang.String casReferenceId,
java.lang.String anEndpointName) |
long |
getTimeSnapshot(java.lang.String key) |
UimaTransport |
getTransport(java.lang.String key) |
UimaTransport |
getTransport(UimaAsContext context,
java.lang.String key) |
UimaEEAdminContext |
getUimaEEAdminContext() |
UimaMessageListener |
getUimaMessageListener(java.lang.String delegateKey) |
void |
handleDelegateLifeCycleEvent(java.lang.String anEndpoint,
int delegateCount) |
void |
incrementDeserializationTime(long cpuTime) |
void |
incrementSerializationTime(long cpuTime) |
void |
initialize() |
void |
initializeVMTransport(int parentControllerReplyConsumerCount) |
boolean |
isAwaitingCacheCallbackNotification() |
boolean |
isCasMultiplier() |
boolean |
isEndpointOnDontProcessList(java.lang.String anEndpointName) |
boolean |
isPrimitive() |
boolean |
isStopped()
Returns true if the AnalysisEngineController has been (or is in the process of) shutdown.
|
boolean |
isTopLevelComponent() |
void |
notifyListenersWithInitializationStatus(java.lang.Exception e) |
void |
onInitialize() |
void |
process(org.apache.uima.cas.CAS cas,
java.lang.String casId) |
void |
process(org.apache.uima.cas.CAS acas,
java.lang.String casReferenceId,
Endpoint anEndpoint) |
void |
process(org.apache.uima.cas.CAS acas,
java.lang.String anInputCasReferenceId,
java.lang.String newCasReferenceId,
java.lang.String newCASProducedBy) |
abstract void |
quiesceAndStop() |
void |
registerVmQueueWithJMX(java.lang.Object o,
java.lang.String name) |
void |
releaseNextCas(java.lang.String casReferenceId) |
void |
removeControllerCallbackListener(ControllerCallbackListener listener)
Removes named application listener.
|
void |
saveReplyTime(long snapshot,
java.lang.String key) |
void |
saveTime(long anArrivalTime,
java.lang.String casReferenceId,
java.lang.String anEndpointName) |
void |
sendMetadata(Endpoint anEndpoint) |
void |
setCasManager(AsynchAECasManager casManager) |
void |
setDeployDescriptor(java.lang.String deployDescriptor) |
void |
setInputChannel(InputChannel anInputChannel) |
void |
setOutputChannel(OutputChannel anOutputChannel) |
void |
setStopped()
Called to set the state of the AnalysisEngineController to STOPPED.
|
void |
setUimaEEAdminContext(UimaEEAdminContext anAdminContext) |
void |
stop() |
void |
takeAction(java.lang.String anAction,
java.lang.String anEndpointName,
ErrorContext anErrorContext) |
void |
terminate()
Called to initiate shutdown of the Asynchronous Service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdumpState, getKeypublic void addAbortedCasReferenceId(java.lang.String casReferenceId)
addAbortedCasReferenceId in interface AnalysisEngineControllerpublic void addInputChannel(InputChannel anInputChannel) throws java.lang.Exception
addInputChannel in interface AnalysisEngineControllerjava.lang.Exceptionpublic void addServiceInfo(ServiceInfo serviceInfo)
addServiceInfo in interface AnalysisEngineControllerpublic void addTimeSnapshot(long snapshot,
java.lang.String key)
public void beginProcess(int msgType)
beginProcess in interface AnalysisEngineControllerpublic void cacheClientEndpoint(Endpoint anEndpoint)
cacheClientEndpoint in interface AnalysisEngineControllerpublic void collectionProcessComplete(Endpoint anEndpoint) throws AsynchAEException
collectionProcessComplete in interface AnalysisEngineControllerAsynchAEExceptionpublic void dropCAS(java.lang.String casReferenceId,
boolean dropCacheEntry)
dropCAS in interface AnalysisEngineControllerpublic void dropCAS(org.apache.uima.cas.CAS acas)
dropCAS in interface AnalysisEngineControllerpublic void dropStats(java.lang.String casReferenceId,
java.lang.String anEndpointName)
dropStats in interface AnalysisEngineControllerpublic void endProcess(int msgType)
endProcess in interface AnalysisEngineControllerpublic void forceTimeoutOnPendingCases(java.lang.String key)
forceTimeoutOnPendingCases in interface AnalysisEngineControllerpublic long getAnalysisTime()
getAnalysisTime in interface AnalysisEngineControllerpublic AsynchAECasManager getCasManagerWrapper()
getCasManagerWrapper in interface AnalysisEngineControllerpublic ServicePerformance getCasStatistics(java.lang.String casReferenceId)
getCasStatistics in interface AnalysisEngineControllerpublic org.apache.uima.UimaContext getChildUimaContext(java.lang.String delegateEndpointName)
throws java.lang.Exception
getChildUimaContext in interface AnalysisEngineControllerjava.lang.Exceptionpublic Endpoint getClientEndpoint()
getClientEndpoint in interface AnalysisEngineControllerpublic java.lang.String getComponentName()
getComponentName in interface AnalysisEngineControllerpublic java.util.Map<java.lang.String,java.lang.String> getDeadClientMap()
getDeadClientMap in interface AnalysisEngineControllerpublic ControllerLatch getControllerLatch()
getControllerLatch in interface AnalysisEngineControllerpublic long getCpuTime()
getCpuTime in interface AnalysisEngineControllerpublic ErrorHandlerChain getErrorHandlerChain()
getErrorHandlerChain in interface AnalysisEngineControllerpublic EventSubscriber getEventListener()
getEventListener in interface AnalysisEngineControllerpublic long getIdleTime()
getIdleTime in interface AnalysisEngineControllerpublic long getIdleTimeBetweenProcessCalls(int msgType)
getIdleTimeBetweenProcessCalls in interface AnalysisEngineControllerpublic InProcessCache getInProcessCache()
getInProcessCache in interface AnalysisEngineControllerpublic int getIndex()
getIndex in interface AnalysisEngineControllerpublic InputChannel getInputChannel()
getInputChannel in interface AnalysisEngineControllerpublic InputChannel getInputChannel(java.lang.String queueName)
getInputChannel in interface AnalysisEngineControllerpublic java.lang.String getJMXDomain()
getJMXDomain in interface AnalysisEngineControllerpublic java.lang.String getJmxContext()
getJmxContext in interface AnalysisEngineControllerpublic LocalCache getLocalCache()
getLocalCache in interface AnalysisEngineControllerpublic JmxManagement getManagementInterface()
getManagementInterface in interface AnalysisEngineControllerpublic Monitor getMonitor()
getMonitor in interface AnalysisEngineControllerpublic java.lang.String getName()
getName in interface AnalysisEngineControllerpublic OutputChannel getOutputChannel()
getOutputChannel in interface AnalysisEngineControllerpublic AnalysisEngineController getParentController()
getParentController in interface AnalysisEngineControllerpublic InputChannel getReplyInputChannel(java.lang.String delegateKey)
getReplyInputChannel in interface AnalysisEngineControllerpublic long getReplyTime()
getReplyTime in interface AnalysisEngineControllerpublic java.lang.String getServiceEndpointName()
getServiceEndpointName in interface AnalysisEngineControllerpublic ServiceErrors getServiceErrors()
getServiceErrors in interface AnalysisEngineControllerpublic ServiceInfo getServiceInfo()
getServiceInfo in interface AnalysisEngineControllerpublic ServicePerformance getServicePerformance()
getServicePerformance in interface AnalysisEngineControllerpublic java.util.Map getStats()
getStats in interface AnalysisEngineControllerpublic long getTime(java.lang.String casReferenceId,
java.lang.String anEndpointName)
getTime in interface AnalysisEngineControllerpublic long getTimeSnapshot(java.lang.String key)
public UimaTransport getTransport(UimaAsContext context, java.lang.String key) throws java.lang.Exception
getTransport in interface AnalysisEngineControllerjava.lang.Exceptionpublic UimaTransport getTransport(java.lang.String key) throws java.lang.Exception
getTransport in interface AnalysisEngineControllerjava.lang.Exceptionpublic UimaEEAdminContext getUimaEEAdminContext()
getUimaEEAdminContext in interface AnalysisEngineControllerpublic UimaMessageListener getUimaMessageListener(java.lang.String delegateKey)
getUimaMessageListener in interface AnalysisEngineControllerpublic void handleDelegateLifeCycleEvent(java.lang.String anEndpoint,
int delegateCount)
handleDelegateLifeCycleEvent in interface AnalysisEngineControllerpublic void incrementDeserializationTime(long cpuTime)
incrementDeserializationTime in interface AnalysisEngineControllerpublic void incrementSerializationTime(long cpuTime)
incrementSerializationTime in interface AnalysisEngineControllerpublic void initialize()
throws AsynchAEException
initialize in interface AnalysisEngineControllerAsynchAEExceptionpublic void initializeVMTransport(int parentControllerReplyConsumerCount)
throws java.lang.Exception
initializeVMTransport in interface AnalysisEngineControllerjava.lang.Exceptionpublic boolean isAwaitingCacheCallbackNotification()
isAwaitingCacheCallbackNotification in interface AnalysisEngineControllerpublic boolean isCasMultiplier()
isCasMultiplier in interface AnalysisEngineControllerpublic boolean isPrimitive()
isPrimitive in interface AnalysisEngineControllerpublic boolean isStopped()
AnalysisEngineControllerisStopped in interface AnalysisEngineControllerpublic boolean isTopLevelComponent()
isTopLevelComponent in interface AnalysisEngineControllerpublic void notifyListenersWithInitializationStatus(java.lang.Exception e)
notifyListenersWithInitializationStatus in interface AnalysisEngineControllerpublic void onInitialize()
onInitialize in interface AnalysisEngineControllerpublic void process(org.apache.uima.cas.CAS cas,
java.lang.String casId)
process in interface AnalysisEngineControllerpublic void process(org.apache.uima.cas.CAS acas,
java.lang.String anInputCasReferenceId,
java.lang.String newCasReferenceId,
java.lang.String newCASProducedBy)
process in interface AnalysisEngineControllerpublic void process(org.apache.uima.cas.CAS acas,
java.lang.String casReferenceId,
Endpoint anEndpoint)
process in interface AnalysisEngineControllerpublic abstract void quiesceAndStop()
quiesceAndStop in interface AnalysisEngineControllerpublic void registerVmQueueWithJMX(java.lang.Object o,
java.lang.String name)
throws java.lang.Exception
registerVmQueueWithJMX in interface AnalysisEngineControllerjava.lang.Exceptionpublic void releaseNextCas(java.lang.String casReferenceId)
releaseNextCas in interface AnalysisEngineControllerpublic void saveReplyTime(long snapshot,
java.lang.String key)
saveReplyTime in interface AnalysisEngineControllerpublic void saveTime(long anArrivalTime,
java.lang.String casReferenceId,
java.lang.String anEndpointName)
saveTime in interface AnalysisEngineControllerpublic void sendMetadata(Endpoint anEndpoint) throws AsynchAEException
sendMetadata in interface AnalysisEngineControllerAsynchAEExceptionpublic void setCasManager(AsynchAECasManager casManager)
setCasManager in interface AnalysisEngineControllerpublic void setDeployDescriptor(java.lang.String deployDescriptor)
setDeployDescriptor in interface AnalysisEngineControllerpublic void setInputChannel(InputChannel anInputChannel) throws java.lang.Exception
setInputChannel in interface AnalysisEngineControllerjava.lang.Exceptionpublic void setOutputChannel(OutputChannel anOutputChannel) throws java.lang.Exception
setOutputChannel in interface AnalysisEngineControllerjava.lang.Exceptionpublic void setStopped()
AnalysisEngineControllersetStopped in interface AnalysisEngineControllerpublic void setUimaEEAdminContext(UimaEEAdminContext anAdminContext)
setUimaEEAdminContext in interface AnalysisEngineControllerpublic void stop()
stop in interface AnalysisEngineControllerpublic void takeAction(java.lang.String anAction,
java.lang.String anEndpointName,
ErrorContext anErrorContext)
takeAction in interface AnalysisEngineControllerpublic void addControllerCallbackListener(ControllerCallbackListener listener)
ControllerLifecycleaddControllerCallbackListener in interface ControllerLifecyclelistener - - application listener object to registerpublic void removeControllerCallbackListener(ControllerCallbackListener listener)
ControllerLifecycleremoveControllerCallbackListener in interface ControllerLifecyclelistener - - application listener to removepublic void terminate()
ControllerLifecycleterminate in interface ControllerLifecyclepublic void addEndpointToDoNotProcessList(java.lang.String anEndpointName)
public boolean isEndpointOnDontProcessList(java.lang.String anEndpointName)
public void evictExpiredEntries()
public void changeState(BaseAnalysisEngineController.ServiceState state)
changeState in interface AnalysisEngineControllerpublic BaseAnalysisEngineController.ServiceState getState()
getState in interface AnalysisEngineControllerCopyright © 2012. All Rights Reserved.