|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.analysis_engine.asb.impl.FlowControllerContainer
public class FlowControllerContainer
Container for a FlowController. Manages configuration parameters, resources, CAS interface conversions, and performance timing.
Field Summary |
---|
Fields inherited from interface org.apache.uima.resource.Resource |
---|
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT |
Constructor Summary | |
---|---|
FlowControllerContainer()
|
Method Summary | |
---|---|
void |
addAnalysisEngines(java.util.Collection<java.lang.String> aKeys)
Notifies this FlowController that new Analysis Engines |
void |
collectionProcessComplete()
|
FlowContainer |
computeFlow(CAS aCAS)
Invokes the FlowController's computeFlow method, returning a Flow object that routes the given CAS through this aggregate. |
void |
destroy()
Releases all resources held by this Resource . |
protected void |
finalize()
|
AnalysisEngineManagementImpl |
getMBean()
Gets the MBean to use to report performance statistics. |
ProcessingResourceMetaData |
getProcessingResourceMetaData()
|
java.lang.Class<? extends AbstractCas> |
getRequiredCasInterface()
Get the required CAS interface of the FlowController. |
boolean |
initialize(ResourceSpecifier aSpecifier,
java.util.Map<java.lang.String,java.lang.Object> aAdditionalParams)
Initializes this Resource from a ResourceSpecifier . |
void |
reconfigure()
Instructs this Resource to re-read its configuration parameter settings. |
void |
removeAnalysisEngines(java.util.Collection<java.lang.String> aKeys)
Notifies this FlowController that some Analysis Engines are no longer available to route CASes to. |
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase |
---|
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
Methods inherited from class org.apache.uima.resource.Resource_ImplBase |
---|
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.uima.resource.Resource |
---|
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger |
Constructor Detail |
---|
public FlowControllerContainer()
Method Detail |
---|
public boolean initialize(ResourceSpecifier aSpecifier, java.util.Map<java.lang.String,java.lang.Object> aAdditionalParams) throws ResourceInitializationException
Resource
Resource
from a ResourceSpecifier
. Applications
do not need to call this method. It is called automatically by the ResourceFactory
and cannot be called a second time.
initialize
in interface Resource
initialize
in class Resource_ImplBase
aSpecifier
- specifies how to create a resource or locate an existing resource service.aAdditionalParams
- a Map containing additional parameters. May be null
if there are no
parameters. Each class that implements this interface can decide what additional
parameters it supports.
ResourceSpecifier
is not of an appropriate type for this Resource. If
the ResourceSpecifier
is of an appropriate type but is invalid or if
some other failure occurs, an exception should be thrown.
ResourceInitializationException
- if a failure occurs during initialization.Resource.initialize(org.apache.uima.resource.ResourceSpecifier,
java.util.Map)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void reconfigure() throws ResourceConfigurationException
ConfigurableResource
reconfigure
in interface ConfigurableResource
reconfigure
in class ConfigurableResource_ImplBase
ResourceConfigurationException
- if the configuration is not validConfigurableResource.reconfigure()
public void destroy()
Resource
Resource
.
destroy
in interface Resource
destroy
in class Resource_ImplBase
Resource.destroy()
public FlowContainer computeFlow(CAS aCAS) throws AnalysisEngineProcessException
aCAS
- the CAS to pass to the FlowController
AnalysisEngineProcessException
- if the FlowController failedpublic java.lang.Class<? extends AbstractCas> getRequiredCasInterface()
public ProcessingResourceMetaData getProcessingResourceMetaData()
public AnalysisEngineManagementImpl getMBean()
public void addAnalysisEngines(java.util.Collection<java.lang.String> aKeys)
FlowController.addAnalysisEngines(Collection)
public void removeAnalysisEngines(java.util.Collection<java.lang.String> aKeys) throws AnalysisEngineProcessException
AnalysisEngineProcessException
FlowController.removeAnalysisEngines(Collection)
public void collectionProcessComplete() throws AnalysisEngineProcessException
AnalysisEngineProcessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |