|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.collection.impl.metadata.cpe.CpeDescriptorFactory
public class CpeDescriptorFactory
Factory class for creating CpeDescriptors and their constituent objects.
Constructor Summary | |
---|---|
CpeDescriptorFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CpeDescriptorFactory()
Method Detail |
---|
public static CpeDescription produceDescriptor()
public static CpeDescription produceDescriptor(XMLInputSource aInput) throws InvalidXMLException
aInput
- identifies the input file
InvalidXMLException
- if the descriptor is invalidpublic static CpeDescription produceDescriptor(java.io.InputStream aInput) throws InvalidXMLException
aInput
- identifies the input stream
InvalidXMLException
- if the descriptor is invalidpublic static CpeCollectionReader produceCollectionReader(java.lang.String aCollectionReaderDescriptorPath, CpeDescription aDescriptor) throws CpeDescriptorException
aCollectionReaderDescriptorPath
- a path to the collection reader descriptoraDescriptor
- the descriptor to associate the collection reader with
CpeDescriptorException
- if there is a failurepublic static CpeCollectionReader produceCollectionReader(java.lang.String aCollectionReaderDescriptorPath) throws CpeDescriptorException
CpeDescriptorException
public static CpeCollectionReader produceCollectionReader() throws CpeDescriptorException
CpeDescriptorException
public static CpeCollectionReaderIterator produceCollectionReaderIterator(java.lang.String aPath) throws CpeDescriptorException
CpeDescriptorException
@Deprecated public static CpeCollectionReaderCasInitializer produceCollectionReaderCasInitializer(java.lang.String aPath, CpeDescription aDescriptor) throws CpeDescriptorException
aPath
- don't useaDescriptor
- don't use
CpeDescriptorException
- passed thru@Deprecated protected static CpeCollectionReaderCasInitializer produceCollectionReaderCasInitializer(java.lang.String aInitializerDescriptorPath)
aInitializerDescriptorPath
- path to the initializer descriptor
public static CpeComponentDescriptor produceComponentDescriptor(java.lang.String aPath)
aPath
- The path to the the CPE component Descriptor
public static CpeConfiguration produceCpeConfiguration(CpeDescription aDescriptor) throws CpeDescriptorException
aDescriptor
- CPE descriptor to use
CpeDescriptorException
- if it failspublic static CpeConfiguration produceCpeConfiguration() throws CpeDescriptorException
CpeDescriptorException
public static CasProcessorRuntimeEnvParam produceRuntimeEnvParam()
public static CasProcessorDeploymentParams produceDeployParams()
public static CasProcessorDeploymentParam produceDeployParam()
public static CpeInclude produceComponentDescriptorInclude()
public static CpeCasProcessors produceCasProcessors(CpeDescription aDescriptor) throws CpeDescriptorException
aDescriptor
- to use to produce the CPE CAS Processors
CpeDescriptorException
- if an error occurspublic static CpeCasProcessors produceCasProcessors() throws CpeDescriptorException
CpeDescriptorException
public static CpeCasProcessors produceCasProcessors(int aInputQSize, int aOutputQSize, int aPuCount, CpeDescription aDescriptor) throws CpeDescriptorException
aInputQSize
- the input queue sizeaOutputQSize
- the output queue sizeaPuCount
- the number of processing unitsaDescriptor
- the CPE descriptor
CpeDescriptorException
- if an error occurspublic static CpeIntegratedCasProcessor produceCasProcessor(java.lang.String aName)
public static CpeLocalCasProcessor produceLocalCasProcessor(java.lang.String aName, java.lang.String aSoFa) throws CpeDescriptorException
aName
- the processor nameaSoFa
- the processor SofA
CpeDescriptorException
- if an error occurspublic static CpeRemoteCasProcessor produceRemoteCasProcessor(java.lang.String aName) throws CpeDescriptorException
aName
- the processor name
CpeDescriptorException
- if an error occurspublic static CpeTimer produceCpeTimer(java.lang.String aTimerClass)
public static CpeResourceManagerConfiguration produceResourceManagerConfiguration(java.lang.String aResourceMgrConfigurationPath, CpeDescription aDescriptor) throws CpeDescriptorException
CpeDescriptorException
public static CpeResourceManagerConfiguration produceResourceManagerConfiguration(java.lang.String aResourceMgrConfigurationPath) throws CpeDescriptorException
CpeDescriptorException
public static CasProcessorTimeout produceCasProcessorTimeout()
public static CasProcessorMaxRestarts produceCasProcessorMaxRestarts()
public static CasProcessorErrorRateThreshold produceCasProcessorErrorRateThreshold()
public static CasProcessorFilter produceCasProcessorFilter(java.lang.String aFilter)
aFilter
- the filter string
public static CasProcessorErrorHandling produceCasProcessorErrorHandling()
public static CpeCheckpoint produceCpeCheckpoint()
public static CasProcessorDeploymentParams produceCasProcessorDeploymentParams()
public static CasProcessorExecArg produceCasProcessorExecArg()
public static CasProcessorExecutable produceCasProcessorExecutable()
public static CasProcessorRunInSeperateProcess produceRunInSeperateProcess()
public static CasProcessorConfigurationParameterSettings produceCasProcessorConfigurationParameterSettings()
public static NameValuePair produceNameValuePair()
public static CpeSofaMapping produceSofaMapping()
public static CpeSofaMappings produceSofaMappings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |