public class RootUimaContext_impl extends UimaContext_ImplBase
UimaContext. UIMA Contexts are arranged in a tree structure
corresponding to the nested structure of the components in a CPE or Aggregate AE. The root
UimaContext has direct references to shared components such as the ResourceManager and
ConfigurationManager. The children UimaContexts reference these through the root.| Modifier and Type | Field and Description |
|---|---|
protected Settings |
mExternalOverrides
External parameter override specifications - held at the root context level
|
loggingThrottleLimit, mCasPoolSize, mMBean, mOutstandingCASes, mQualifiedContextName, mSofaMappings| Constructor and Description |
|---|
RootUimaContext_impl() |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationManager |
getConfigurationManager()
Gets the ConfigurationManager instance used by this UimaContext to resolve configuration
parameter resource accesses.
|
Settings |
getExternalOverrides()
(non-Javadoc)
|
InstrumentationFacility |
getInstrumentationFacility()
Gets the InstrumentationFacility to be used within this AnalysisEngine.
|
Logger |
getLogger()
Gets the
Logger to which log output will be sent. |
ResourceManager |
getResourceManager()
Gets the ResourceManager used by this UimaContext to locate and access external resources
|
UimaContextAdmin |
getRootContext()
Get the Root Context
|
Session |
getSession()
Returns the Session object, which can be used to store data that pertains to a particular
client session.
|
void |
initializeRoot(Logger aLogger,
ResourceManager aResourceManager,
ConfigurationManager aConfigurationManager)
Initializes a root UimaContext.
|
void |
setExternalOverrides(Settings externalOverrides)
(non-Javadoc)
|
void |
setLogger(Logger aLogger)
Sets the Logger for this UimaContext.
|
void |
setProcessTrace(ProcessTrace aProcessTrace)
Sets the current ProcessTrace object, which will receive trace events generated by the
InstrumentationFacility.
|
void |
setSession(Session aSession)
Sets the current session object.
|
combineSofaMappings, createChild, defineCasPool, getComponentInfo, getConfigParameterNames, getConfigParameterNames, getConfigParameterValue, getConfigParameterValue, getConfigurationGroupNames, getDataPath, getEmptyCas, getManagementInterface, getMdcId, getQualifiedContextName, getResourceAsStream, getResourceAsStream, getResourceFilePath, getResourceFilePath, getResourceObject, getResourceObject, getResourceURI, getResourceURI, getResourceURL, getResourceURL, getSharedSettingArray, getSharedSettingNames, getSharedSettingValue, getSofaMap, getSofaMappings, getUniqueName, makeQualifiedName, mapSofaIDToComponentSofaName, mapToSofaID, maybeThrottleLogger, returnedCAS, setLoggingThrottleLimitprotected volatile Settings mExternalOverrides
public Settings getExternalOverrides()
UimaContext_ImplBasegetExternalOverrides in interface UimaContextgetExternalOverrides in interface UimaContextAdmingetExternalOverrides in class UimaContext_ImplBaseUimaContextAdmin.getExternalOverrides()public void setExternalOverrides(Settings externalOverrides)
UimaContext_ImplBasesetExternalOverrides in interface UimaContextAdminsetExternalOverrides in class UimaContext_ImplBaseexternalOverrides - the external overrides settingsUimaContextAdmin.setExternalOverrides(org.apache.uima.util.Settings)public void initializeRoot(Logger aLogger, ResourceManager aResourceManager, ConfigurationManager aConfigurationManager)
UimaContextAdminaLogger - the logger that will be returned by this UimaContext's UimaContext.getLogger() method.aResourceManager - Deprecated: this parameter is ignored! The ResourceManager that will be used by
this UimaContext to locate and access external resource.aConfigurationManager - Deprecated: this parameter is ignored! The ConfigurationManager that will be
used by this UimaContext to access its configuration parameter settings.public Logger getLogger()
UimaContextLogger to which log output will be sent. UIMA components should use this
facility rather than writing to their own log files (or to stdout).AnnotatorContext.getLogger()public void setLogger(Logger aLogger)
UimaContextAdminUIMAFramework.getLogger()) will be used.aLogger - the logger that will be returned by this UimaContext's UimaContext.getLogger() method.public ResourceManager getResourceManager()
public ConfigurationManager getConfigurationManager()
UimaContextAdminpublic InstrumentationFacility getInstrumentationFacility()
public void setProcessTrace(ProcessTrace aProcessTrace)
This method is to be called from the Analysis Engine, not the Annotator, so it is not part of the AnnotatorContext interface.
aProcessTrace - the ProcessTrace object to receive trace eventspublic void setSession(Session aSession)
UimaContextAdminaSession - the session objectpublic Session getSession()
UimaContextNote that Session support is NOT implemented in any of the service wrappers (e.g. Vinci) currently provided in the UIMA SDK.
public UimaContextAdmin getRootContext()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.