public class CpeDescriptorFactory extends Object
| Constructor and Description |
|---|
CpeDescriptorFactory()
Instantiates a new cpe descriptor factory.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.uima.collection.metadata.CpeIntegratedCasProcessor |
produceCasProcessor(String aName)
Produce cas processor.
|
static org.apache.uima.collection.metadata.CasProcessorConfigurationParameterSettings |
produceCasProcessorConfigurationParameterSettings()
Produce cas processor configuration parameter settings.
|
static org.apache.uima.collection.metadata.CasProcessorDeploymentParams |
produceCasProcessorDeploymentParams()
Produce cas processor deployment params.
|
static org.apache.uima.collection.metadata.CasProcessorErrorHandling |
produceCasProcessorErrorHandling()
Produce cas processor error handling.
|
static org.apache.uima.collection.metadata.CasProcessorErrorRateThreshold |
produceCasProcessorErrorRateThreshold()
Produce cas processor error rate threshold.
|
static org.apache.uima.collection.metadata.CasProcessorExecArg |
produceCasProcessorExecArg()
Produce cas processor exec arg.
|
static org.apache.uima.collection.metadata.CasProcessorExecutable |
produceCasProcessorExecutable()
Produce cas processor executable.
|
static org.apache.uima.collection.metadata.CasProcessorFilter |
produceCasProcessorFilter(String aFilter)
Produce cas processor filter.
|
static org.apache.uima.collection.metadata.CasProcessorMaxRestarts |
produceCasProcessorMaxRestarts()
Produce cas processor max restarts.
|
static org.apache.uima.collection.metadata.CpeCasProcessors |
produceCasProcessors()
Produce cas processors.
|
static org.apache.uima.collection.metadata.CpeCasProcessors |
produceCasProcessors(org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Produce cas processors.
|
static org.apache.uima.collection.metadata.CpeCasProcessors |
produceCasProcessors(int aInputQSize,
int aOutputQSize,
int aPuCount,
org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Produce cas processors.
|
static org.apache.uima.collection.metadata.CasProcessorTimeout |
produceCasProcessorTimeout()
Produce cas processor timeout.
|
static org.apache.uima.collection.metadata.CpeCollectionReader |
produceCollectionReader()
Produce collection reader.
|
static org.apache.uima.collection.metadata.CpeCollectionReader |
produceCollectionReader(String aCollectionReaderDescriptorPath)
Produce collection reader.
|
static org.apache.uima.collection.metadata.CpeCollectionReader |
produceCollectionReader(String aCollectionReaderDescriptorPath,
org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Produce collection reader.
|
protected static org.apache.uima.collection.metadata.CpeCollectionReaderCasInitializer |
produceCollectionReaderCasInitializer(String aInitializerDescriptorPath)
Deprecated.
As of v2.0, CAS Initializers are deprecated.
|
static org.apache.uima.collection.metadata.CpeCollectionReaderCasInitializer |
produceCollectionReaderCasInitializer(String aPath,
org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Deprecated.
As of v2.0, CAS Initializers are deprecated.
|
static org.apache.uima.collection.metadata.CpeCollectionReaderIterator |
produceCollectionReaderIterator(String aPath)
Produce collection reader iterator.
|
static org.apache.uima.collection.metadata.CpeComponentDescriptor |
produceComponentDescriptor(String aPath)
Produce component descriptor.
|
static org.apache.uima.collection.metadata.CpeInclude |
produceComponentDescriptorInclude()
Produce component descriptor include.
|
static org.apache.uima.collection.metadata.CpeCheckpoint |
produceCpeCheckpoint()
Produce cpe checkpoint.
|
static org.apache.uima.collection.metadata.CpeConfiguration |
produceCpeConfiguration()
Produce cpe configuration.
|
static org.apache.uima.collection.metadata.CpeConfiguration |
produceCpeConfiguration(org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Produce cpe configuration.
|
static org.apache.uima.collection.metadata.CpeTimer |
produceCpeTimer(String aTimerClass)
Produce cpe timer.
|
static org.apache.uima.collection.metadata.CasProcessorDeploymentParam |
produceDeployParam()
Produce deploy param.
|
static org.apache.uima.collection.metadata.CasProcessorDeploymentParams |
produceDeployParams()
Produce deploy params.
|
static org.apache.uima.collection.metadata.CpeDescription |
produceDescriptor()
Produce a new CpeDescription from scratch.
|
static org.apache.uima.collection.metadata.CpeDescription |
produceDescriptor(InputStream aInput)
Parse a CpeDescription from a given input stream.
|
static org.apache.uima.collection.metadata.CpeDescription |
produceDescriptor(org.apache.uima.util.XMLInputSource aInput)
Parse a CpeDescription from a descriptor file.
|
static org.apache.uima.collection.metadata.CpeLocalCasProcessor |
produceLocalCasProcessor(String aName,
String aSoFa)
Produce local cas processor.
|
static org.apache.uima.collection.metadata.NameValuePair |
produceNameValuePair()
Produce name value pair.
|
static org.apache.uima.collection.metadata.CpeRemoteCasProcessor |
produceRemoteCasProcessor(String aName)
Produce remote cas processor.
|
static org.apache.uima.collection.metadata.CpeResourceManagerConfiguration |
produceResourceManagerConfiguration(String aResourceMgrConfigurationPath)
Produce resource manager configuration.
|
static org.apache.uima.collection.metadata.CpeResourceManagerConfiguration |
produceResourceManagerConfiguration(String aResourceMgrConfigurationPath,
org.apache.uima.collection.metadata.CpeDescription aDescriptor)
Produce resource manager configuration.
|
static org.apache.uima.collection.metadata.CasProcessorRunInSeperateProcess |
produceRunInSeperateProcess()
Produce run in seperate process.
|
static org.apache.uima.collection.metadata.CasProcessorRuntimeEnvParam |
produceRuntimeEnvParam()
Produce runtime env param.
|
static org.apache.uima.collection.metadata.CpeSofaMapping |
produceSofaMapping()
Produce sofa mapping.
|
static org.apache.uima.collection.metadata.CpeSofaMappings |
produceSofaMappings()
Produce sofa mappings.
|
public CpeDescriptorFactory()
public static org.apache.uima.collection.metadata.CpeDescription produceDescriptor()
public static org.apache.uima.collection.metadata.CpeDescription produceDescriptor(org.apache.uima.util.XMLInputSource aInput)
throws org.apache.uima.util.InvalidXMLException
aInput - identifies the input fileorg.apache.uima.util.InvalidXMLException - if the descriptor is invalidpublic static org.apache.uima.collection.metadata.CpeDescription produceDescriptor(InputStream aInput) throws org.apache.uima.util.InvalidXMLException
aInput - identifies the input streamorg.apache.uima.util.InvalidXMLException - if the descriptor is invalidpublic static org.apache.uima.collection.metadata.CpeCollectionReader produceCollectionReader(String aCollectionReaderDescriptorPath, org.apache.uima.collection.metadata.CpeDescription aDescriptor) throws org.apache.uima.collection.metadata.CpeDescriptorException
aCollectionReaderDescriptorPath - a path to the collection reader descriptoraDescriptor - the descriptor to associate the collection reader withorg.apache.uima.collection.metadata.CpeDescriptorException - if there is a failurepublic static org.apache.uima.collection.metadata.CpeCollectionReader produceCollectionReader(String aCollectionReaderDescriptorPath) throws org.apache.uima.collection.metadata.CpeDescriptorException
aCollectionReaderDescriptorPath - the a collection reader descriptor pathorg.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CpeCollectionReader produceCollectionReader()
throws org.apache.uima.collection.metadata.CpeDescriptorException
org.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CpeCollectionReaderIterator produceCollectionReaderIterator(String aPath) throws org.apache.uima.collection.metadata.CpeDescriptorException
aPath - the a pathorg.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exception@Deprecated public static org.apache.uima.collection.metadata.CpeCollectionReaderCasInitializer produceCollectionReaderCasInitializer(String aPath, org.apache.uima.collection.metadata.CpeDescription aDescriptor) throws org.apache.uima.collection.metadata.CpeDescriptorException
aPath - don't useaDescriptor - don't useorg.apache.uima.collection.metadata.CpeDescriptorException - passed thru@Deprecated protected static org.apache.uima.collection.metadata.CpeCollectionReaderCasInitializer produceCollectionReaderCasInitializer(String aInitializerDescriptorPath)
aInitializerDescriptorPath - path to the initializer descriptorpublic static org.apache.uima.collection.metadata.CpeComponentDescriptor produceComponentDescriptor(String aPath)
aPath - The path to the the CPE component Descriptorpublic static org.apache.uima.collection.metadata.CpeConfiguration produceCpeConfiguration(org.apache.uima.collection.metadata.CpeDescription aDescriptor)
throws org.apache.uima.collection.metadata.CpeDescriptorException
aDescriptor - CPE descriptor to useorg.apache.uima.collection.metadata.CpeDescriptorException - if it failspublic static org.apache.uima.collection.metadata.CpeConfiguration produceCpeConfiguration()
throws org.apache.uima.collection.metadata.CpeDescriptorException
org.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CasProcessorRuntimeEnvParam produceRuntimeEnvParam()
public static org.apache.uima.collection.metadata.CasProcessorDeploymentParams produceDeployParams()
public static org.apache.uima.collection.metadata.CasProcessorDeploymentParam produceDeployParam()
public static org.apache.uima.collection.metadata.CpeInclude produceComponentDescriptorInclude()
public static org.apache.uima.collection.metadata.CpeCasProcessors produceCasProcessors(org.apache.uima.collection.metadata.CpeDescription aDescriptor)
throws org.apache.uima.collection.metadata.CpeDescriptorException
aDescriptor - to use to produce the CPE CAS Processorsorg.apache.uima.collection.metadata.CpeDescriptorException - if an error occurspublic static org.apache.uima.collection.metadata.CpeCasProcessors produceCasProcessors()
throws org.apache.uima.collection.metadata.CpeDescriptorException
org.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CpeCasProcessors produceCasProcessors(int aInputQSize,
int aOutputQSize,
int aPuCount,
org.apache.uima.collection.metadata.CpeDescription aDescriptor)
throws org.apache.uima.collection.metadata.CpeDescriptorException
aInputQSize - the input queue sizeaOutputQSize - the output queue sizeaPuCount - the number of processing unitsaDescriptor - the CPE descriptororg.apache.uima.collection.metadata.CpeDescriptorException - if an error occurspublic static org.apache.uima.collection.metadata.CpeIntegratedCasProcessor produceCasProcessor(String aName)
aName - the a namepublic static org.apache.uima.collection.metadata.CpeLocalCasProcessor produceLocalCasProcessor(String aName, String aSoFa) throws org.apache.uima.collection.metadata.CpeDescriptorException
aName - the processor nameaSoFa - the processor SofAorg.apache.uima.collection.metadata.CpeDescriptorException - if an error occurspublic static org.apache.uima.collection.metadata.CpeRemoteCasProcessor produceRemoteCasProcessor(String aName) throws org.apache.uima.collection.metadata.CpeDescriptorException
aName - the processor nameorg.apache.uima.collection.metadata.CpeDescriptorException - if an error occurspublic static org.apache.uima.collection.metadata.CpeTimer produceCpeTimer(String aTimerClass)
aTimerClass - the a timer classpublic static org.apache.uima.collection.metadata.CpeResourceManagerConfiguration produceResourceManagerConfiguration(String aResourceMgrConfigurationPath, org.apache.uima.collection.metadata.CpeDescription aDescriptor) throws org.apache.uima.collection.metadata.CpeDescriptorException
aResourceMgrConfigurationPath - the a resource mgr configuration pathaDescriptor - the a descriptororg.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CpeResourceManagerConfiguration produceResourceManagerConfiguration(String aResourceMgrConfigurationPath) throws org.apache.uima.collection.metadata.CpeDescriptorException
aResourceMgrConfigurationPath - the a resource mgr configuration pathorg.apache.uima.collection.metadata.CpeDescriptorException - the cpe descriptor exceptionpublic static org.apache.uima.collection.metadata.CasProcessorTimeout produceCasProcessorTimeout()
public static org.apache.uima.collection.metadata.CasProcessorMaxRestarts produceCasProcessorMaxRestarts()
public static org.apache.uima.collection.metadata.CasProcessorErrorRateThreshold produceCasProcessorErrorRateThreshold()
public static org.apache.uima.collection.metadata.CasProcessorFilter produceCasProcessorFilter(String aFilter)
aFilter - the filter stringpublic static org.apache.uima.collection.metadata.CasProcessorErrorHandling produceCasProcessorErrorHandling()
public static org.apache.uima.collection.metadata.CpeCheckpoint produceCpeCheckpoint()
public static org.apache.uima.collection.metadata.CasProcessorDeploymentParams produceCasProcessorDeploymentParams()
public static org.apache.uima.collection.metadata.CasProcessorExecArg produceCasProcessorExecArg()
public static org.apache.uima.collection.metadata.CasProcessorExecutable produceCasProcessorExecutable()
public static org.apache.uima.collection.metadata.CasProcessorRunInSeperateProcess produceRunInSeperateProcess()
public static org.apache.uima.collection.metadata.CasProcessorConfigurationParameterSettings produceCasProcessorConfigurationParameterSettings()
public static org.apache.uima.collection.metadata.NameValuePair produceNameValuePair()
public static org.apache.uima.collection.metadata.CpeSofaMapping produceSofaMapping()
public static org.apache.uima.collection.metadata.CpeSofaMappings produceSofaMappings()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.