|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer
public class VinciCasProcessorDeployer
Reference implementation of
CasProcessorDeployer This
component enables the CPE to deploy Cas Processors running as a Vinci service. Two deployment
models are supported in the current implementation:
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
VinciCasProcessorDeployer(CPEFactory aCpeFactory)
Instantiaes the class and gives it access to CPE configuration. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public VinciCasProcessorDeployer(CPEFactory aCpeFactory)
aCpeFactory - | Method Detail |
|---|
public ProcessingContainer deployCasProcessor(java.util.List aCasProcessorList,
CPMEngine aEngine,
boolean redeploy)
throws ResourceConfigurationException
- - aCasProcessorList - list containing instantiated Cas Processors
ResourceConfigurationException
public void deployCasProcessor(ProcessingContainer aProcessingContainer)
throws ResourceConfigurationException
deployCasProcessor in interface CasProcessorDeployeraProcessingContainer - -
container for deployed CasProcessor.
ResourceConfigurationException - -
failed to deploy Cas Processor
public 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 service
ResourceConfigurationException - -
failed to deploy Cas Processor
public void undeploy()
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentException
public void undeploy(java.net.URL aURL)
throws CasProcessorDeploymentException
undeploy in interface CasProcessorDeployerCasProcessorDeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||