org.apache.uima.collection.impl.cpm.container.deployer
Class DeployFactory
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.DeployFactory
public class DeployFactory
- extends java.lang.Object
Produces a deployer object for each type of deployment: local, remote and integrated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final DeployFactory instance
getDeployer
public static CasProcessorDeployer getDeployer(CPEFactory aCpeFactory,
CpeCasProcessor aCasProcessorConfig,
ProcessControllerAdapter aPca)
throws ResourceConfigurationException
- Returns a
CasProcessorDeployer
object
that specializes in deploying components as either local, remote, or integrated.
- Parameters:
aCpeFactory
- -
cpe configuration referenceaDeployMode
- -
mode of deployment.
- Returns:
- - appropriate deployer object for the mode of depolyment
- Throws:
ResourceConfigurationException
getProtocol
public static java.lang.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
Copyright © 2013. All Rights Reserved.