Class ProcessingContainer
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.collection.impl.base_cpm.container.ProcessingContainer
- All Implemented Interfaces:
 CasProcessorController,ConfigurableResource,Resource
- Direct Known Subclasses:
 ProcessingContainer_Impl
public abstract class ProcessingContainer
extends Resource_ImplBase
implements ConfigurableResource, CasProcessorController
Base interface for implementing a Container object responsible for managing Cas Processor
 instances at runtime. Aggregates stats and totals and helps with error recovery.
- 
Field Summary
Fields inherited from interface org.apache.uima.collection.impl.base_cpm.container.CasProcessorController
DISABLED, INITIALIZED, KILLED, NOTINITIALIZED, RUNNINGFields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract voidaddBytesIn(long aBytesIn) abstract voidaddBytesOut(long aBytesOut) abstract voidabstract intabstract HashMapabstract longabstract longabstract CasProcessorConfigurationabstract CasProcessorDeployerabstract intabstract Objectabstract Stringabstract StringgetName()abstract ServiceProxyPoolgetPool()abstract longabstract longabstract intabstract intabstract Objectabstract longabstract voidincrementAbortCount(int aCount) abstract voidincrementCasProcessorErrors(Throwable aThrowable) abstract voidincrementFilteredCount(int aCount) abstract voidincrementRestartCount(int aCount) abstract voidincrementRetryCount(int aCount) abstract voidincrementStat(String aStatName, Integer aStat) abstract voidincrementTotalTime(long aTime) abstract booleanisEndOfBatch(CasProcessor aCasProcessor, int aProcessedSize) abstract booleanisPaused()abstract booleanabstract voidlogAbortedCases(Object[] abortedCasList) abstract voidpause()abstract booleanprocessCas(Object[] aCas) abstract voidreleaseCasProcessor(CasProcessor aCasProcessor) abstract voidabstract voidresume()abstract voidsetCasProcessorDeployer(CasProcessorDeployer aDeployer) abstract voidsetLastCas(Object aCasObject) abstract voidsetLastProcessedEntityId(String entityId) abstract voidsetMetadata(ProcessingResourceMetaData aMetadata) abstract voidsetProcessed(long aProcessedCount) abstract voidsetRemaining(long aRemainingCount) abstract voidsetSingleFencedService(boolean aSingleFencedInstance) Methods inherited from class org.apache.uima.resource.Resource_ImplBase
destroy, getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.collection.impl.base_cpm.container.CasProcessorController
getCasProcessor, getStatus, isAbortable, isIntegrated, isLocal, isRemote, setStatusMethods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValueMethods inherited from interface org.apache.uima.resource.Resource
destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLogger 
- 
Constructor Details
- 
ProcessingContainer
public ProcessingContainer() 
 - 
 - 
Method Details
- 
processCas
 - 
releaseCasProcessor
 - 
getName
 - 
isEndOfBatch
public abstract boolean isEndOfBatch(CasProcessor aCasProcessor, int aProcessedSize) throws ResourceProcessException, IOException - Throws:
 ResourceProcessExceptionIOException
 - 
abortCPMOnError
public abstract boolean abortCPMOnError() - 
incrementCasProcessorErrors
- Throws:
 Exception
 - 
getCasProcessorConfiguration
 - 
getProcessed
public abstract long getProcessed() - 
setProcessed
public abstract void setProcessed(long aProcessedCount)  - 
getBytesIn
public abstract long getBytesIn() - 
addBytesIn
public abstract void addBytesIn(long aBytesIn)  - 
getBytesOut
public abstract long getBytesOut() - 
addBytesOut
public abstract void addBytesOut(long aBytesOut)  - 
incrementRestartCount
public abstract void incrementRestartCount(int aCount)  - 
getRestartCount
public abstract int getRestartCount() - 
incrementRetryCount
public abstract void incrementRetryCount(int aCount)  - 
getRetryCount
public abstract int getRetryCount() - 
incrementAbortCount
public abstract void incrementAbortCount(int aCount)  - 
getAbortCount
public abstract int getAbortCount() - 
incrementFilteredCount
public abstract void incrementFilteredCount(int aCount)  - 
getFilteredCount
public abstract int getFilteredCount() - 
getRemaining
public abstract long getRemaining() - 
setRemaining
public abstract void setRemaining(long aRemainingCount)  - 
setLastProcessedEntityId
 - 
getLastProcessedEntityId
 - 
incrementTotalTime
public abstract void incrementTotalTime(long aTime)  - 
getTotalTime
public abstract long getTotalTime() - 
logAbortedCases
 - 
setLastCas
 - 
getLastCas
 - 
setCasProcessorDeployer
 - 
getDeployer
 - 
setMetadata
 - 
getAllStats
 - 
addStat
 - 
incrementStat
 - 
getStat
 - 
resetRestartCount
public abstract void resetRestartCount() - 
pause
public abstract void pause() - 
resume
public abstract void resume() - 
isPaused
public abstract boolean isPaused() - 
getPool
 - 
setSingleFencedService
public abstract void setSingleFencedService(boolean aSingleFencedInstance)  - 
isSingleFencedService
public abstract boolean isSingleFencedService() 
 -