org.apache.uima.collection.impl.cpm.container.deployer
Class DeployFactory

java.lang.Object
  extended by 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.


Field Summary
static DeployFactory instance
           
 
Method Summary
static CasProcessorDeployer getDeployer(CPEFactory aCpeFactory, CpeCasProcessor aCasProcessorConfig, ProcessControllerAdapter aPca)
          Returns a CasProcessorDeployer object that specializes in deploying components as either local, remote, or integrated.
static java.lang.String getProtocol(CpeCasProcessor aCasProcessorConfig, ResourceManager aResourceManager)
          Retrieve protocol from the service descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DeployFactory instance
Method Detail

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 reference
aDeployMode - - 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 configuration
aResourceManager - needed to resolve import by name
Returns:
- protocol as string (vinci, socket)
Throws:
ResourceConfigurationException


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.