public class SocketCasProcessorDeployer extends Object implements CasProcessorDeployer
CasProcessorDeployer component responsible for launch and
termination of the fenced CasProcessor. It uses a plug-in ProcessControllerAdapter object
to delegate launch requests from the CPM to the external application.| Constructor and Description |
|---|
SocketCasProcessorDeployer(ProcessControllerAdapter aController)
Instantiates a new socket cas processor deployer.
|
SocketCasProcessorDeployer(ProcessControllerAdapter aController,
CPEFactory aCpeFactory)
Instantiates a new socket cas processor deployer.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessingContainer |
deployCasProcessor(List aCasProcessorList,
boolean redeploy)
Uses ProcessControllerAdapter instance to launch fenced CasProcessor.
|
ProcessingContainer |
deployCasProcessor(List aCasProcessorList,
CPMEngine aEngine,
boolean redeploy)
Deploys integrated Cas Processor.
|
void |
deployCasProcessor(ProcessingContainer aProcessingContainer)
Uses ProcessControllerAdapter instance to launch fenced CasProcessor.
|
void |
undeploy() |
void |
undeploy(URL aURL) |
public SocketCasProcessorDeployer(ProcessControllerAdapter aController, CPEFactory aCpeFactory)
aController - the a controlleraCpeFactory - the a cpe factorypublic SocketCasProcessorDeployer(ProcessControllerAdapter aController)
aController - the a controllerpublic 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 ProcessingContainer deployCasProcessor(List aCasProcessorList, boolean redeploy) throws org.apache.uima.resource.ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraCasProcessorList - the a cas processor listredeploy - the redeployorg.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic void deployCasProcessor(ProcessingContainer aProcessingContainer) throws org.apache.uima.resource.ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraProcessingContainer - the a processing containerorg.apache.uima.resource.ResourceConfigurationException - the resource configuration exceptionpublic void undeploy(URL aURL) throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentExceptionpublic void undeploy()
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentExceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.