Class SocketCasProcessorDeployer
java.lang.Object
org.apache.uima.collection.impl.cpm.container.deployer.socket.SocketCasProcessorDeployer
- All Implemented Interfaces:
CasProcessorDeployer
Reference implementation of the
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 Summary
ConstructorsConstructorDescriptionSocketCasProcessorDeployer(ProcessControllerAdapter aController) SocketCasProcessorDeployer(ProcessControllerAdapter aController, CPEFactory aCpeFactory) -
Method Summary
Modifier and TypeMethodDescriptiondeployCasProcessor(List aCasProcessorList, boolean redeploy) Uses ProcessControllerAdapter instance to launch fenced CasProcessor.deployCasProcessor(List aCasProcessorList, CPMEngine aEngine, boolean redeploy) Deploys integrated Cas Processor.voiddeployCasProcessor(ProcessingContainer aProcessingContainer) Uses ProcessControllerAdapter instance to launch fenced CasProcessor.voidundeploy()void
-
Constructor Details
-
SocketCasProcessorDeployer
-
SocketCasProcessorDeployer
-
-
Method Details
-
deployCasProcessor
public ProcessingContainer deployCasProcessor(List aCasProcessorList, CPMEngine aEngine, boolean redeploy) throws ResourceConfigurationException Deploys integrated Cas Processor. Number of instances this routine actually deploys depends on number of processing threads defined in the CPE descriptor. There is one instance per processing thread created here. The aCasProcessorList contains instantiated Cas Processors. These are instantiated by the CPEFactory.- Parameters:
aCasProcessorList- - list containing instantiated Cas Processorsredeploy- - true when redeploying failed Cas Processor- Returns:
- - ProcessingContainer containing pool of CasProcessors
- Throws:
ResourceConfigurationException
-
deployCasProcessor
public ProcessingContainer deployCasProcessor(List aCasProcessorList, boolean redeploy) throws ResourceConfigurationException Uses ProcessControllerAdapter instance to launch fenced CasProcessor.- Specified by:
deployCasProcessorin interfaceCasProcessorDeployer- Parameters:
aCasProcessorList- - list of Cas Processors to deployredeploy- - true if the Cas Processor is being redeployed as part of the recovery, false otherwise- Returns:
- ProcessingContainer managing deployed Cas Processors
- Throws:
ResourceConfigurationException- - failed to deploy Cas Processor
-
deployCasProcessor
public void deployCasProcessor(ProcessingContainer aProcessingContainer) throws ResourceConfigurationException Uses ProcessControllerAdapter instance to launch fenced CasProcessor.- Specified by:
deployCasProcessorin interfaceCasProcessorDeployer- Parameters:
aProcessingContainer- - ProcessingContainer managing deployed Cas Processor to redeploy- Throws:
ResourceConfigurationException- - failed to deploy Cas Processor
-
undeploy
- Specified by:
undeployin interfaceCasProcessorDeployer- Throws:
CasProcessorDeploymentException
-
undeploy
- Specified by:
undeployin interfaceCasProcessorDeployer- Throws:
CasProcessorDeploymentException
-