public class VinciCasProcessorDeployer extends java.lang.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 java.lang.String |
CONN_RETRY_COUNT |
static int |
DEFAULT_SERVICE_PORT |
static int |
DEFAULT_SERVICE_PORT_RANGE |
static java.lang.String |
DEFAULT_VNS_PORT |
static java.lang.String |
LOCAL_VNS |
static int |
MAX_WAIT_TRIES |
static int |
SLEEP_TIME |
static int |
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(java.util.List aCasProcessorList,
boolean redeploy)
Deploys CasProcessors in a provided List.
|
ProcessingContainer |
deployCasProcessor(java.util.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(java.net.URL aURL) |
public static final java.lang.String LOCAL_VNS
public static final int WAIT_TIME
public static final int MAX_WAIT_TRIES
public static final java.lang.String CONN_RETRY_COUNT
public static final java.lang.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 - public ProcessingContainer deployCasProcessor(java.util.List aCasProcessorList, CPMEngine aEngine, boolean redeploy) throws ResourceConfigurationException
- - aCasProcessorList - list containing instantiated Cas ProcessorsResourceConfigurationExceptionpublic void deployCasProcessor(ProcessingContainer aProcessingContainer) throws ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraProcessingContainer - -
container for deployed CasProcessor.ResourceConfigurationException - -
failed to deploy Cas Processorpublic ProcessingContainer deployCasProcessor(java.util.List aCasProcessorList, boolean redeploy) throws ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraCasProcessorList- - list of CasProcessors to deployredeploy - -
true if intent is to redeploy failed serviceResourceConfigurationException - -
failed to deploy Cas Processorpublic void undeploy()
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentExceptionpublic void undeploy(java.net.URL aURL)
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentExceptionCopyright © 2013. All Rights Reserved.