public class AggregateAnalysisEngineController_impl extends BaseAnalysisEngineController implements AggregateAnalysisEngineController, AggregateAnalysisEngineController_implMBean
BaseAnalysisEngineController.ServiceState| Modifier and Type | Field and Description |
|---|---|
protected List<AnalysisEngineController> |
childControllerList |
protected boolean |
initialized |
Object |
parallelStepMux |
abortedCasesMap, aeDescriptor, allDelegatesAreRemote, awaitingCacheCallbackNotification, callbackMonitor, callbackReceived, clientEndpoint, cmOutstandingCASes, componentCasPoolSize, controllerListeners, currentState, deadClientDestinationMap, delegateKey, delegates, errorCount, errorHandlerChain, finalStepMux, idleTime, inputChannel, inputChannelList, inputChannelMap, jmxContext, latch, localCache, messageListeners, monitor, NO_RECOVERY, paramsMap, parentController, perCasStatistics, processPid, replyTime, resourceSpecifier, serviceErrorMap, serviceErrors, serviceInitialized, servicePerformance, statsMap, stopped, syncObject, transports, unregisteredDelegateListAEInstanceCount, CasPoolSize| Constructor and Description |
|---|
AggregateAnalysisEngineController_impl(AnalysisEngineController aParentController,
String anEndpointName,
String aDescriptor,
AsynchAECasManager aCasManager,
InProcessCache anInProcessCache,
Map aDestinationMap) |
AggregateAnalysisEngineController_impl(AnalysisEngineController aParentController,
String anEndpointName,
String aDescriptor,
AsynchAECasManager aCasManager,
InProcessCache anInProcessCache,
Map aDestinationMap,
JmxManagement aJmxManagement) |
AggregateAnalysisEngineController_impl(String anEndpointName,
String aDescriptor,
AsynchAECasManager aCasManager,
InProcessCache anInProcessCache,
Map aDestinationMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageOrigin(String aCasReferenceId,
Endpoint anEndpoint) |
void |
changeCollocatedDelegateState(String delegateKey,
BaseAnalysisEngineController.ServiceState state) |
void |
cleanUp() |
void |
collectionProcessComplete(Endpoint anEndpoint) |
boolean |
continueOnError(String aCasReferenceId,
String aDelegateKey,
Exception anException) |
boolean |
delayCasIfDelegateInTimedOutState(String aCasReferenceId,
String aDelegateKey)
Checks the state of a delegate to see if it is in TIMEOUT State.
|
void |
disableDelegates(List aDelegateList) |
protected void |
disableDelegates(List aDelegateList,
String aCasReferenceId) |
void |
dispatchMetadataRequest(Endpoint anEndpoint) |
void |
dropCAS(String aCasReferenceId,
boolean dropCacheEntry) |
void |
dropFlow(String aCasReferenceId,
boolean abortFlow) |
void |
dumpState(StringBuffer buffer,
String lbl1) |
void |
enableDelegates(List aDelegateList) |
void |
finalStep(org.apache.uima.flow.FinalStep aStep,
String aCasReferenceId) |
List |
getChildControllerList() |
ControllerLatch |
getControllerLatch() |
ServiceErrors |
getDelegateServiceErrors(String aDelegateKey) |
PrimitiveServiceInfo |
getDelegateServiceInfo(String aDelegateKey) |
ServicePerformance |
getDelegateServicePerformance(String aDelegateKey) |
Map |
getDelegateStats() |
String |
getDescriptor() |
Map |
getDestinations() |
String |
getLastDelegateKeyFromFlow(String anInputCasReferenceId) |
LocalCache |
getLocalCache() |
Endpoint |
getMessageOrigin(String aCasReferenceId) |
Monitor |
getMonitor() |
String |
getServiceEndpointName() |
ServiceErrors |
getServiceErrors(String aDelegateKey) |
AggregateServiceInfo |
getServiceInfo() |
ServicePerformance |
getServicePerformance(String aDelegateKey) |
void |
handleDelegateLifeCycleEvent(String anEndpoint,
int aDelegateCount) |
void |
handleInitializationError(Exception ex) |
void |
incrementAnalysisTime(long anAnalysisTime)
Accumulate analysis time for the aggregate
|
void |
initialize() |
boolean |
isDelegateDisabled(String aDelegateKey) |
boolean |
isDelegateKeyValid(String aDelegateKey) |
boolean |
isPrimitive() |
Delegate |
lookupDelegate(String aDelegateKey)
Return
Delegate object for a given delegate key. |
String |
lookUpDelegateKey(String anEndpointName) |
String |
lookUpDelegateKey(String anEndpointName,
String server)
Returns a delegate key given an endpoint (queue) name and a server uri.
|
Endpoint |
lookUpEndpoint(String anAnalysisEngineKey,
boolean clone) |
void |
mapEndpointsToKeys(ConcurrentHashMap aDestinationMap) |
void |
mergeTypeSystem(String aTypeSystem,
String fromDestination) |
void |
mergeTypeSystem(String aTypeSystem,
String fromDestination,
String fromServer) |
void |
onInitialize()
Force all collocated delegates to perform any post-initialization steps.
|
void |
process(org.apache.uima.cas.CAS aCAS,
String aCasReferenceId)
This is a process method that is executed for CASes not created by a Multiplier in this
aggregate.
|
void |
process(org.apache.uima.cas.CAS aCAS,
String anInputCasReferenceId,
String aNewCasReferenceId,
String newCASProducedBy)
This routine is called to handle CASes produced by a CAS Multiplier.
|
void |
processCollectionCompleteReplyFromDelegate(String aDelegateKey,
boolean sendReply) |
void |
registerChildController(AnalysisEngineController aChildController,
String aDelegateKey) |
boolean |
releaseParentCas(boolean casDropped,
boolean clientIsCollocated,
LocalCache.CasStateEntry parentCasStateEntry) |
void |
removeMessageOrigin(String aCasReferenceId) |
boolean |
requestForMetaSentToRemotes() |
void |
retryLastCommand(int aCommand,
Endpoint anEndpoint,
String aCasReferenceId) |
void |
retryMetadataRequest(Endpoint anEndpoint) |
void |
retryProcessCASRequest(String aCasReferenceId,
Endpoint anEndpoint,
boolean addEndpointToCache) |
void |
saveStatsFromService(String aServiceEndpointName,
Map aServiceStats) |
void |
sendMetadata(Endpoint anEndpoint) |
void |
sendRequestForMetadataToRemoteDelegates() |
void |
setCasLoggingDirectory(String key,
String directory) |
void |
setControllerBeanName(String aBeanName) |
void |
setDescriptor(String descriptor) |
void |
setFlowControllerDescriptor(String aFlowControllerDescriptor) |
void |
setMonitor(Monitor monitor) |
void |
setRequestForMetaSentToRemotes() |
void |
setServiceEndpointName(String anEndpointName) |
void |
stop()
Stops input channel(s) and initiates a shutdown of all delegates ( if this is an aggregate ).
|
void |
stopTimers() |
void |
takeAction(String anAction,
String anEndpointName,
ErrorContext anErrorContext) |
abortGeneratingCASes, addAbortedCasReferenceId, addControllerCallbackListener, addInputChannel, addServiceInfo, beginProcess, cacheClientEndpoint, changeState, clearStats, dropCAS, dropCasStatistics, dropStats, endProcess, exceedsThresholdWithinWindow, forceTimeoutOnPendingCases, getAnalysisTime, getBrokerURL, getCasManagerWrapper, getCasMultiplierController, getCasStatistics, getChildUimaContext, getClientEndpoint, getComponentName, getCpuTime, getDeadClientMap, getDeploymentDescriptor, getDeploymentMode, getErrorHandlerChain, getEventListener, getIdleTime, getIdleTimeBetweenProcessCalls, getIndex, getInProcessCache, getInputChannel, getInputChannel, getInputQueue, getJmxContext, getJMXDomain, getKey, getManagementInterface, getName, getOutputChannel, getParentController, getReplyInputChannel, getReplyTime, getResourceSpecifier, getServiceErrors, getServiceName, getServicePerformance, getState, getStats, getTime, getTotalNumberOfCASesDropped, getTotalNumberOfCASesProcessed, getTotalNumberOfCASesReceived, getTotalNumberOfErrors, getTotalTimeSpendDeSerializingCAS, getTotalTimeSpentSerializingCAS, getTotalTimeSpentWaitingForFreeCASInstance, getTransport, getTransport, getTransport, getUimaEEAdminContext, getUimaMessageListener, handleAction, handleError, incrementDeserializationTime, incrementErrorCounter, incrementSerializationTime, initializeVMTransport, isAwaitingCacheCallbackNotification, isCasMultiplier, isStopped, isTopLevelComponent, logStats, logStats, notifyListenersWithInitializationStatus, onCacheEmpty, plugInDefaultErrorHandlerChain, process, quiesceAndStop, registerServiceWithJMX, registerVmQueueWithJMX, registerWithAgent, releaseNextCas, removeControllerCallbackListener, resetErrorCounter, saveReplyTime, saveTime, sendMetadata, setCasManager, setDeployDescriptor, setErrorHandlerChain, setInputChannel, setJmxManagement, setOutputChannel, setStopped, setUimaEEAdminContext, stop, stopCasMultiplier, stopCasMultipliers, stopDelegateTimers, stopInputChannel, stopInputChannels, stopTransportLayer, terminate, terminate, toStringdestroy, getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildUimaContext, stopCasMultiplieraddAbortedCasReferenceId, addInputChannel, addServiceInfo, beginProcess, cacheClientEndpoint, changeState, dropCAS, dropStats, endProcess, forceTimeoutOnPendingCases, getAnalysisTime, getCasManagerWrapper, getCasStatistics, getClientEndpoint, getComponentName, getCpuTime, getDeadClientMap, getErrorHandlerChain, getEventListener, getIdleTime, getIdleTimeBetweenProcessCalls, getIndex, getInProcessCache, getInputChannel, getInputChannel, getJmxContext, getJMXDomain, getKey, getManagementInterface, getName, getOutputChannel, getParentController, getReplyInputChannel, getReplyTime, getServiceErrors, getServicePerformance, getState, getStats, getTime, getTransport, getTransport, getUimaEEAdminContext, getUimaMessageListener, incrementDeserializationTime, incrementSerializationTime, initializeVMTransport, isAwaitingCacheCallbackNotification, isCasMultiplier, isStopped, isTopLevelComponent, notifyListenersWithInitializationStatus, process, quiesceAndStop, registerVmQueueWithJMX, releaseNextCas, saveReplyTime, saveTime, setCasManager, setDeployDescriptor, setInputChannel, setOutputChannel, setStopped, setUimaEEAdminContextaddControllerCallbackListener, removeControllerCallbackListener, terminategetBrokerURL, getComponentName, getDeploymentDescriptor, getDeploymentMode, getIdleTime, getInputQueue, getServiceName, getTotalNumberOfCASesDropped, getTotalNumberOfCASesProcessed, getTotalNumberOfCASesReceived, getTotalNumberOfErrors, getTotalTimeSpendDeSerializingCAS, getTotalTimeSpentSerializingCAS, getTotalTimeSpentWaitingForFreeCASInstanceprotected volatile boolean initialized
protected List<AnalysisEngineController> childControllerList
public final Object parallelStepMux
public AggregateAnalysisEngineController_impl(String anEndpointName, String aDescriptor, AsynchAECasManager aCasManager, InProcessCache anInProcessCache, Map aDestinationMap) throws Exception
anEndpointName - aDescriptor - aCasManager - anInProcessCache - aDestinationMap - Exceptionpublic AggregateAnalysisEngineController_impl(AnalysisEngineController aParentController, String anEndpointName, String aDescriptor, AsynchAECasManager aCasManager, InProcessCache anInProcessCache, Map aDestinationMap) throws Exception
aParentController - anEndpointName - aDescriptor - aCasManager - anInProcessCache - aDestinationMap - Exceptionpublic AggregateAnalysisEngineController_impl(AnalysisEngineController aParentController, String anEndpointName, String aDescriptor, AsynchAECasManager aCasManager, InProcessCache anInProcessCache, Map aDestinationMap, JmxManagement aJmxManagement) throws Exception
Exceptionpublic void registerChildController(AnalysisEngineController aChildController, String aDelegateKey) throws Exception
registerChildController in interface AggregateAnalysisEngineControllerExceptionpublic void saveStatsFromService(String aServiceEndpointName, Map aServiceStats)
saveStatsFromService in interface AggregateAnalysisEngineControllerpublic void addMessageOrigin(String aCasReferenceId, Endpoint anEndpoint)
addMessageOrigin in interface AggregateAnalysisEngineControllerpublic boolean isDelegateDisabled(String aDelegateKey)
isDelegateDisabled in interface AggregateAnalysisEngineControllerpublic void setServiceEndpointName(String anEndpointName)
anEndpointName - public String getServiceEndpointName()
getServiceEndpointName in interface AnalysisEngineControllerpublic void setControllerBeanName(String aBeanName)
aBeanName - public Endpoint getMessageOrigin(String aCasReferenceId)
getMessageOrigin in interface AggregateAnalysisEngineControllerpublic void removeMessageOrigin(String aCasReferenceId)
removeMessageOrigin in interface AggregateAnalysisEngineControllerpublic void dropCAS(String aCasReferenceId, boolean dropCacheEntry)
dropCAS in interface AnalysisEngineControllerdropCAS in class BaseAnalysisEngineControllerpublic void dropFlow(String aCasReferenceId, boolean abortFlow)
dropFlow in interface AggregateAnalysisEngineControllerpublic void mapEndpointsToKeys(ConcurrentHashMap aDestinationMap)
mapEndpointsToKeys in interface AggregateAnalysisEngineControllerpublic Map getDelegateStats()
getDelegateStats in interface AggregateAnalysisEngineControllerpublic void processCollectionCompleteReplyFromDelegate(String aDelegateKey, boolean sendReply) throws AsynchAEException
processCollectionCompleteReplyFromDelegate in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void setFlowControllerDescriptor(String aFlowControllerDescriptor)
aFlowControllerDescriptor - public void takeAction(String anAction, String anEndpointName, ErrorContext anErrorContext)
takeAction in interface AnalysisEngineControllerpublic void collectionProcessComplete(Endpoint anEndpoint) throws AsynchAEException
collectionProcessComplete in interface AnalysisEngineControllerAsynchAEExceptionpublic String getDescriptor()
public void setDescriptor(String descriptor)
public boolean isPrimitive()
isPrimitive in interface AnalysisEngineControllerpublic Map getDestinations()
getDestinations in interface AggregateAnalysisEngineControllerpublic void enableDelegates(List aDelegateList) throws AsynchAEException
enableDelegates in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void handleInitializationError(Exception ex)
public void disableDelegates(List aDelegateList) throws AsynchAEException
disableDelegates in interface AggregateAnalysisEngineControllerAsynchAEExceptionprotected void disableDelegates(List aDelegateList, String aCasReferenceId) throws AsynchAEException
AsynchAEExceptionpublic boolean continueOnError(String aCasReferenceId, String aDelegateKey, Exception anException) throws AsynchAEException
continueOnError in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic String getLastDelegateKeyFromFlow(String anInputCasReferenceId)
getLastDelegateKeyFromFlow in interface AggregateAnalysisEngineControllerpublic void process(org.apache.uima.cas.CAS aCAS,
String anInputCasReferenceId,
String aNewCasReferenceId,
String newCASProducedBy)
process in interface AnalysisEngineControllerprocess in class BaseAnalysisEngineControlleraCAS - - CAS to processanInputCasReferenceId - - reference id of the input CASaNewCasReferenceId - - reference id of the CAS created by the CAS multipliernewCASProducedBy - - name of the multiplier that created the CASorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionAsynchAEExceptionpublic void process(org.apache.uima.cas.CAS aCAS,
String aCasReferenceId)
process in interface AnalysisEngineControllerprocess in class BaseAnalysisEngineControllerpublic void sendRequestForMetadataToRemoteDelegates()
throws AsynchAEException
sendRequestForMetadataToRemoteDelegates in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void finalStep(org.apache.uima.flow.FinalStep aStep,
String aCasReferenceId)
finalStep in interface AggregateAnalysisEngineControllerpublic boolean releaseParentCas(boolean casDropped,
boolean clientIsCollocated,
LocalCache.CasStateEntry parentCasStateEntry)
public boolean delayCasIfDelegateInTimedOutState(String aCasReferenceId, String aDelegateKey) throws AsynchAEException
delayCasIfDelegateInTimedOutState in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void retryProcessCASRequest(String aCasReferenceId, Endpoint anEndpoint, boolean addEndpointToCache) throws AsynchAEException
retryProcessCASRequest in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic boolean isDelegateKeyValid(String aDelegateKey)
isDelegateKeyValid in interface AggregateAnalysisEngineControllerpublic String lookUpDelegateKey(String anEndpointName)
lookUpDelegateKey in interface AggregateAnalysisEngineControllerpublic String lookUpDelegateKey(String anEndpointName, String server)
lookUpDelegateKey in interface AggregateAnalysisEngineControllerpublic Endpoint lookUpEndpoint(String anAnalysisEngineKey, boolean clone) throws AsynchAEException
lookUpEndpoint in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic PrimitiveServiceInfo getDelegateServiceInfo(String aDelegateKey)
getDelegateServiceInfo in interface AggregateAnalysisEngineControllerpublic ServicePerformance getDelegateServicePerformance(String aDelegateKey)
getDelegateServicePerformance in interface AggregateAnalysisEngineControllerpublic ServiceErrors getDelegateServiceErrors(String aDelegateKey)
getDelegateServiceErrors in interface AggregateAnalysisEngineControllerpublic void mergeTypeSystem(String aTypeSystem, String fromDestination) throws AsynchAEException
mergeTypeSystem in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void mergeTypeSystem(String aTypeSystem, String fromDestination, String fromServer) throws AsynchAEException
mergeTypeSystem in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void initialize()
throws AsynchAEException
initialize in interface AnalysisEngineControllerAsynchAEExceptionpublic void dispatchMetadataRequest(Endpoint anEndpoint) throws AsynchAEException
dispatchMetadataRequest in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void retryMetadataRequest(Endpoint anEndpoint) throws AsynchAEException
retryMetadataRequest in interface AggregateAnalysisEngineControllerAsynchAEExceptionpublic void sendMetadata(Endpoint anEndpoint)
sendMetadata in interface AnalysisEngineControllerpublic ControllerLatch getControllerLatch()
getControllerLatch in interface AnalysisEngineControllerpublic Monitor getMonitor()
getMonitor in interface AnalysisEngineControllerpublic void setMonitor(Monitor monitor)
public void handleDelegateLifeCycleEvent(String anEndpoint, int aDelegateCount)
handleDelegateLifeCycleEvent in interface AnalysisEngineControllerpublic void retryLastCommand(int aCommand,
Endpoint anEndpoint,
String aCasReferenceId)
retryLastCommand in interface AggregateAnalysisEngineControllerpublic ServiceErrors getServiceErrors(String aDelegateKey)
public AggregateServiceInfo getServiceInfo()
getServiceInfo in interface AggregateAnalysisEngineControllergetServiceInfo in interface AnalysisEngineControllerpublic ServicePerformance getServicePerformance(String aDelegateKey)
getServicePerformance in interface AggregateAnalysisEngineControllerpublic void incrementAnalysisTime(long anAnalysisTime)
anAnalysisTime - public void stopTimers()
stopTimers in interface AggregateAnalysisEngineControllerpublic boolean requestForMetaSentToRemotes()
requestForMetaSentToRemotes in interface AggregateAnalysisEngineControllerpublic void setRequestForMetaSentToRemotes()
setRequestForMetaSentToRemotes in interface AggregateAnalysisEngineControllerpublic void cleanUp()
cleanUp in class BaseAnalysisEngineControllerpublic void stop()
BaseAnalysisEngineControllerstop in interface AnalysisEngineControllerstop in class BaseAnalysisEngineControllerpublic List getChildControllerList()
getChildControllerList in interface AggregateAnalysisEngineControllerpublic void onInitialize()
onInitialize in interface AnalysisEngineControllerpublic void changeCollocatedDelegateState(String delegateKey, BaseAnalysisEngineController.ServiceState state) throws Exception
changeCollocatedDelegateState in interface AggregateAnalysisEngineControllerExceptionpublic void dumpState(StringBuffer buffer, String lbl1)
dumpState in interface AnalysisEngineControllerdumpState in class BaseAnalysisEngineControllerpublic LocalCache getLocalCache()
getLocalCache in interface AnalysisEngineControllergetLocalCache in class BaseAnalysisEngineControllerpublic Delegate lookupDelegate(String aDelegateKey)
Delegate object for a given delegate key.lookupDelegate in interface AggregateAnalysisEngineControllerpublic void setCasLoggingDirectory(String key, String directory)
setCasLoggingDirectory in interface AggregateAnalysisEngineControllerCopyright © 2016. All rights reserved.