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 |
static int |
DEFAULT_SERVICE_PORT |
static int |
DEFAULT_SERVICE_PORT_RANGE |
static String |
DEFAULT_VNS_PORT |
static 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(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
- public ProcessingContainer deployCasProcessor(List aCasProcessorList, CPMEngine aEngine, boolean redeploy) throws ResourceConfigurationException
aCasProcessorList
- - list containing instantiated Cas Processorsredeploy
- - true when redeploying failed Cas ProcessorResourceConfigurationException
public void deployCasProcessor(ProcessingContainer aProcessingContainer) throws ResourceConfigurationException
deployCasProcessor
in interface CasProcessorDeployer
aProcessingContainer
- -
container for deployed CasProcessor.ResourceConfigurationException
- -
failed to deploy Cas Processorpublic ProcessingContainer deployCasProcessor(List aCasProcessorList, boolean redeploy) throws ResourceConfigurationException
deployCasProcessor
in interface CasProcessorDeployer
aCasProcessorList
- -
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 CasProcessorDeployer
CasProcessorDeploymentException
public void undeploy(URL aURL) throws CasProcessorDeploymentException
undeploy
in interface CasProcessorDeployer
CasProcessorDeploymentException
Copyright © 2017. All rights reserved.