public class ASB_impl extends Resource_ImplBase implements ASB
ASB implementation. This implementation is not specific to any transport
technology. It simply uses the ResourceFactory to acquire instances of its delegate
AnalysisEngines and then communicates with these delegate AnalysisEngines through the
AnalysisEngine interface. Any communication with remote AnalysisEngine services is done
through a AnalysisEngineServiceAdapter and
is not the concern of this ASB implementation.PARAM_AGGREGATE_ANALYSIS_ENGINE_NAMEPARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT| Constructor and Description |
|---|
ASB_impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Releases all resources held by this
Resource. |
Map<String,ProcessingResourceMetaData> |
getAllComponentMetaData()
Gets the metadata for all components known to this ASB.
|
Map<String,AnalysisEngineMetaData> |
getComponentAnalysisEngineMetaData()
Gets metadata for all of the component AnalysisEngines known to this
ASB. |
Map<String,AnalysisEngine> |
getComponentAnalysisEngines()
Gets references to the component AnalysisEngines known to this
ASB. |
FlowControllerContainer |
getFlowControllerContainer()
Not public API.
|
protected AnalysisEngineManagementImpl |
getMBean()
Gets the MBean that provides the management interface to this AE.
|
protected void |
initFlowController(FlowControllerDeclaration aFlowControllerDeclaration,
UimaContextAdmin aParentContext,
AnalysisEngineMetaData aAggregateMetadata) |
boolean |
initialize(ResourceSpecifier aSpecifier,
Map<String,Object> aAdditionalParams)
Initializes this ASB.
|
CasIterator |
process(CAS aCAS)
Invokes the processing of the aggregate on the given input CAS.
|
void |
setup(Map<String,ResourceSpecifier> aSpecifiers,
UimaContextAdmin aParentContext,
FlowControllerDeclaration aFlowControllerDeclaration,
AnalysisEngineMetaData aAggregateMetadata)
Called after calling initialize() (see above) by the Aggregate Analysis Engine to provide this
ASB with information it needs to operate.
|
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLoggerpublic boolean initialize(ResourceSpecifier aSpecifier, Map<String,Object> aAdditionalParams) throws ResourceInitializationException
initialize in interface Resourceinitialize in class Resource_ImplBaseaSpecifier - describes how to create this ASB.aAdditionalParams - parameters which are passed along to the delegate Analysis Engines when they are
constructedResourceSpecifier.ResourceInitializationException - if a failure occurs during initialization.Resource.initialize(ResourceSpecifier, Map)public void destroy()
ResourceResource.destroy in interface Resourcedestroy in class Resource_ImplBaseResource.destroy()public void setup(Map<String,ResourceSpecifier> aSpecifiers, UimaContextAdmin aParentContext, FlowControllerDeclaration aFlowControllerDeclaration, AnalysisEngineMetaData aAggregateMetadata) throws ResourceInitializationException
setup in interface ASBaSpecifiers - the specifiers for all component AEs within this Aggregate. The ASB will instantiate
those AEs.aParentContext - UIMA context for the aggregate AEaFlowControllerDeclaration - declaration (key and specifier) of FlowController to be used for this aggregate.aAggregateMetadata - metadata for the aggregate AEResourceInitializationException - passthruprotected void initFlowController(FlowControllerDeclaration aFlowControllerDeclaration, UimaContextAdmin aParentContext, AnalysisEngineMetaData aAggregateMetadata) throws ResourceInitializationException
ResourceInitializationExceptionpublic Map<String,AnalysisEngineMetaData> getComponentAnalysisEngineMetaData()
ASBASB.getComponentAnalysisEngineMetaData in interface ASBAnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers() to
AnalysisEngineMetaData values.ASB.getComponentAnalysisEngineMetaData()public Map<String,AnalysisEngine> getComponentAnalysisEngines()
ASBASB.getComponentAnalysisEngines in interface ASBAnalysisEngineDescription.getDelegateAnalysisEngineSpecifiers() to
AnalysisEngine objects.ASB.getComponentAnalysisEngines()public Map<String,ProcessingResourceMetaData> getAllComponentMetaData()
ASBgetAllComponentMetaData in interface ASBProcessingResourceMetaData values.public CasIterator process(CAS aCAS) throws AnalysisEngineProcessException
ASBCasIterator.
If the aggregate does not generate any output CASes of the input CAS, an empty
CasIterator will be returned.
process in interface ASBaCAS - the CAS to processAnalysisEngineProcessException - -public FlowControllerContainer getFlowControllerContainer()
getFlowControllerContainer in interface ASBFlowControllerContainerprotected AnalysisEngineManagementImpl getMBean()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.