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