Class CPEConfig
java.lang.Object
org.apache.uima.collection.impl.cpm.CPEConfig
Object containing global cpe configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns CPE checkpoint configurationReturns CPE statup mode as defined in the CPE descriptorlonglonglongReturns number of entities to process by the CPE.Returns an id of the first entity theCollectionReaderwill be told to readReturns the name of customUimaTimerclass.voidsetChConfig(CheckpointConfig config) Copies Checkpoint configurationvoidsetDeployAs(String aCpeDeployMode) Copies CPE startup modevoidsetInputQueueMaxMemoryThreshold(long aInputQueueMaxMemoryThreshold) voidsetMaxTimeToWait(long aMaxTimeToWait) voidsetNumToProcess(long aTotalCount) Copies number of entities to processvoidsetOutputQueueClass(String aOutputQueueClass) voidsetStartWith(String aStartEntityId) Copies ind of the first entity to start readingvoidsetTimerClass(String aTimerClass) Copies a name of the customUimaTimerclass
-
Constructor Details
-
CPEConfig
public CPEConfig()
-
-
Method Details
-
getChConfig
Returns CPE checkpoint configuration- Returns:
- CheckpointConfig object
-
getDeployAs
Returns CPE statup mode as defined in the CPE descriptor- Returns:
- - statup mode
-
getNumToProcess
public long getNumToProcess()Returns number of entities to process by the CPE.- Returns:
- - number of entities to process
-
getStartWith
Returns an id of the first entity theCollectionReaderwill be told to read- Returns:
- - id of the first entity to read
-
getTimerClass
Returns the name of customUimaTimerclass.- Returns:
- - class as String
-
setChConfig
Copies Checkpoint configuration- Parameters:
config- - checkpoint configuration
-
setDeployAs
Copies CPE startup mode- Parameters:
aCpeDeployMode- - startup mode
-
setNumToProcess
public void setNumToProcess(long aTotalCount) Copies number of entities to process- Parameters:
aTotalCount- - total number of entities to process
-
setStartWith
Copies ind of the first entity to start reading- Parameters:
aStartEntityId- - id of entity
-
setTimerClass
Copies a name of the customUimaTimerclass- Parameters:
aTimerClass- - timer class
-
getInputQueueMaxMemoryThreshold
public long getInputQueueMaxMemoryThreshold() -
setInputQueueMaxMemoryThreshold
public void setInputQueueMaxMemoryThreshold(long aInputQueueMaxMemoryThreshold) -
getMaxTimeToWait
public long getMaxTimeToWait() -
setMaxTimeToWait
public void setMaxTimeToWait(long aMaxTimeToWait) -
getOutputQueueClass
-
setOutputQueueClass
-