Class DeployFactory
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.DeployFactory
Produces a deployer object for each type of deployment: local, remote and integrated.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CasProcessorDeployer
getDeployer
(CPEFactory aCpeFactory, CpeCasProcessor aCasProcessorConfig, ProcessControllerAdapter aPca) Returns aCasProcessorDeployer
object that specializes in deploying components as either local, remote, or integrated.static String
getProtocol
(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) Retrieve protocol from the service descriptor
-
Field Details
-
instance
-
-
Method Details
-
getDeployer
public static CasProcessorDeployer getDeployer(CPEFactory aCpeFactory, CpeCasProcessor aCasProcessorConfig, ProcessControllerAdapter aPca) throws ResourceConfigurationException Returns aCasProcessorDeployer
object that specializes in deploying components as either local, remote, or integrated.- Parameters:
aCpeFactory
- cpe factoryaCasProcessorConfig
- cpe configuration referenceaPca
- mode of deployment.- Returns:
- appropriate deployer object for the mode of depolyment
- Throws:
ResourceConfigurationException
- missing protocol or other deployment error
-
getProtocol
public static String getProtocol(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager) throws ResourceConfigurationException Retrieve protocol from the service descriptor- Parameters:
aCasProcessorConfig
- Cas Processor configurationaResourceManager
- needed to resolve import by name- Returns:
- - protocol as string (vinci, socket)
- Throws:
ResourceConfigurationException
- wraps Exception
-