public class VinciCasProcessorDeployer extends Object implements CasProcessorDeployer
CasProcessorDeployer This
component enables the CPE to deploy Cas Processors running as a Vinci service. Two deployment
models are supported in the current implementation:
| Modifier and Type | Field and Description |
|---|---|
static String |
CONN_RETRY_COUNT
The Constant CONN_RETRY_COUNT.
|
static int |
DEFAULT_SERVICE_PORT
The Constant DEFAULT_SERVICE_PORT.
|
static int |
DEFAULT_SERVICE_PORT_RANGE
The Constant DEFAULT_SERVICE_PORT_RANGE.
|
static String |
DEFAULT_VNS_PORT
The Constant DEFAULT_VNS_PORT.
|
static String |
LOCAL_VNS
The Constant LOCAL_VNS.
|
static int |
MAX_WAIT_TRIES
The Constant MAX_WAIT_TRIES.
|
static int |
SLEEP_TIME
The Constant SLEEP_TIME.
|
static int |
WAIT_TIME
The Constant WAIT_TIME.
|
| Constructor and Description |
|---|
VinciCasProcessorDeployer(CPEFactory aCpeFactory)
Instantiaes the class and gives it access to CPE configuration.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessingContainer |
deployCasProcessor(List aCasProcessorList,
boolean redeploy)
Deploys CasProcessors in a provided List.
|
ProcessingContainer |
deployCasProcessor(List aCasProcessorList,
CPMEngine aEngine,
boolean redeploy)
Deploys integrated Cas Processor.
|
void |
deployCasProcessor(ProcessingContainer aProcessingContainer)
Deploys CasProcessor using configuration from provided container.
|
void |
undeploy()
Shutdown local VNS.
|
void |
undeploy(URL aURL) |
public static final String LOCAL_VNS
public static final int WAIT_TIME
public static final int MAX_WAIT_TRIES
public static final String CONN_RETRY_COUNT
public static final String DEFAULT_VNS_PORT
public static final int DEFAULT_SERVICE_PORT
public static final int DEFAULT_SERVICE_PORT_RANGE
public static final int SLEEP_TIME
public VinciCasProcessorDeployer(CPEFactory aCpeFactory)
aCpeFactory - the a cpe factorypublic ProcessingContainer deployCasProcessor(List aCasProcessorList, CPMEngine aEngine, boolean redeploy) throws org.apache.uima.resource.ResourceConfigurationException
aCasProcessorList - - list containing instantiated Cas ProcessorsaEngine - the a engineredeploy - - true when redeploying failed Cas Processororg.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic void deployCasProcessor(ProcessingContainer aProcessingContainer) throws org.apache.uima.resource.ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraProcessingContainer - -
container for deployed CasProcessor.org.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic ProcessingContainer deployCasProcessor(List aCasProcessorList, boolean redeploy) throws org.apache.uima.resource.ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraCasProcessorList - -
list of CasProcessors to deployredeploy - -
true if intent is to redeploy failed serviceorg.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic void undeploy()
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentException - the cas processor deployment exceptionpublic void undeploy(URL aURL) throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentExceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.