Class CpeConfigurationImpl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- org.apache.uima.collection.impl.metadata.cpe.CpeConfigurationImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,CpeConfiguration,MetaDataObject,XMLizable
public class CpeConfigurationImpl extends MetaDataObject_impl implements CpeConfiguration
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
-
Field Summary
-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description CpeConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CpeCheckpointgetCheckpoint()Returns Checkpoint object containing checkpoint file and frequency of checkpoints.CpeTimergetCpeTimer()Returns the timer class implementing UimeTimer interface.java.lang.StringgetDeployAs()java.lang.StringgetDeployment()Returns CPE deployment mode as "immediate", "vinceService", "interactive".intgetMaxTimeToWait()longgetNum2Process()intgetNumToProcess()Returns number of entities to processOutputQueuegetOutputQueue()java.lang.StringgetStartAt()java.lang.StringgetStartingEntityId()Returns id of the first entity the CPE will beging processing.java.lang.StringgetTimerImpl()protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidremoveCheckpoint()Removes checkpoint objectvoidremoveCpeTimer()voidsetCheckpoint(CpeCheckpoint aCheckpoint)Sets Checkpoint object containing checkpoint file and frequency of checkpoints.voidsetCpeTimer(CpeTimer aTimer)Sets the timer class implementing UimeTimer interface.voidsetDeployAs(java.lang.String string)voidsetDeployment(java.lang.String aDeploy)Sets CPE deployment mode as "immediate", "vinceService", "interactive".voidsetNumToProcess(int aNumToProcess)Sets number of entities to process by the CPE.voidsetNumToProcess(long l)voidsetOutputQueue(OutputQueue queue)voidsetStartAt(java.lang.String aStartAt)voidsetStartingEntityId(java.lang.String aStartAt)Sets id of the first entity the CPE will beging processing.voidsetTimerImpl(java.lang.String string)-
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Method Detail
-
setDeployment
public void setDeployment(java.lang.String aDeploy) throws CpeDescriptorExceptionDescription copied from interface:CpeConfigurationSets CPE deployment mode as "immediate", "vinceService", "interactive". The CPE does not directly use this information, instead it is up to the application using the CPE to ingest this and handle it as appropriate. This element is used by an application that uses the CPE. The CPE is an embeddable component, part of a larger application.- "immediate" mode: this is the way the CPE is typically run. In this mode the application is initializing the CPE and starts in without user interaction. The CPE runs to completion in this case.
- "interactive" mode: The application interacts with the CPE via an API to stop, pause, or resume the CPE.
- "vinciService" mode: used to indicate control of CPE in terms of stop, pause, resume, and query for performance info, from a remote console.
- Specified by:
setDeploymentin interfaceCpeConfiguration- Parameters:
aDeploy- - deployment mode of the CPE- Throws:
CpeDescriptorException- tbd
-
getDeployment
public java.lang.String getDeployment()
Description copied from interface:CpeConfigurationReturns CPE deployment mode as "immediate", "vinceService", "interactive".- Specified by:
getDeploymentin interfaceCpeConfiguration- Returns:
- - deployment mode
- See Also:
for a description of these modes.
-
setNumToProcess
public void setNumToProcess(int aNumToProcess) throws CpeDescriptorExceptionDescription copied from interface:CpeConfigurationSets number of entities to process by the CPE.- Specified by:
setNumToProcessin interfaceCpeConfiguration- Parameters:
aNumToProcess- - number of entities to process (-1 - for ALL)- Throws:
CpeDescriptorException- tbd
-
getNumToProcess
public int getNumToProcess()
Description copied from interface:CpeConfigurationReturns number of entities to process- Specified by:
getNumToProcessin interfaceCpeConfiguration- Returns:
- - number of entities to process (-1 - for ALL)
-
setStartingEntityId
public void setStartingEntityId(java.lang.String aStartAt)
Description copied from interface:CpeConfigurationSets id of the first entity the CPE will beging processing. Usefull when starting the CPE from a known point.- Specified by:
setStartingEntityIdin interfaceCpeConfiguration- Parameters:
aStartAt- - id of first entity
-
getStartingEntityId
public java.lang.String getStartingEntityId()
Description copied from interface:CpeConfigurationReturns id of the first entity the CPE will beging processing. Usefull when starting the CPE from a known point.- Specified by:
getStartingEntityIdin interfaceCpeConfiguration- Returns:
- - id of first entity
-
setCheckpoint
public void setCheckpoint(CpeCheckpoint aCheckpoint) throws CpeDescriptorException
Description copied from interface:CpeConfigurationSets Checkpoint object containing checkpoint file and frequency of checkpoints.- Specified by:
setCheckpointin interfaceCpeConfiguration- Parameters:
aCheckpoint- - checkpoint object- Throws:
CpeDescriptorException- tbd
-
getCheckpoint
public CpeCheckpoint getCheckpoint()
Description copied from interface:CpeConfigurationReturns Checkpoint object containing checkpoint file and frequency of checkpoints.- Specified by:
getCheckpointin interfaceCpeConfiguration- Returns:
CpeCheckpoint
-
removeCheckpoint
public void removeCheckpoint()
Description copied from interface:CpeConfigurationRemoves checkpoint object- Specified by:
removeCheckpointin interfaceCpeConfiguration
-
setCpeTimer
public void setCpeTimer(CpeTimer aTimer)
Description copied from interface:CpeConfigurationSets the timer class implementing UimeTimer interface. This timer will be used to time CPE events. By default, the CPE uses System.currentTimeMillis() to obtain time.- Specified by:
setCpeTimerin interfaceCpeConfiguration- Parameters:
aTimer- - timer class
-
getCpeTimer
public CpeTimer getCpeTimer()
Description copied from interface:CpeConfigurationReturns the timer class implementing UimeTimer interface. This timer will be used to time CPE events. By default, the CPE uses System.currentTimeMillis() to obtain time.- Specified by:
getCpeTimerin interfaceCpeConfiguration- Returns:
- - timer class
-
removeCpeTimer
public void removeCpeTimer()
- Specified by:
removeCpeTimerin interfaceCpeConfiguration
-
getDeployAs
public java.lang.String getDeployAs()
-
getNum2Process
public long getNum2Process()
-
getStartAt
public java.lang.String getStartAt()
-
getTimerImpl
public java.lang.String getTimerImpl()
- Specified by:
getTimerImplin interfaceCpeConfiguration
-
setDeployAs
public void setDeployAs(java.lang.String string)
- Parameters:
string-
-
setNumToProcess
public void setNumToProcess(long l)
- Parameters:
l-
-
setStartAt
public void setStartAt(java.lang.String aStartAt)
- Parameters:
aStartAt-
-
setTimerImpl
public void setTimerImpl(java.lang.String string)
- Parameters:
string-
-
getOutputQueue
public OutputQueue getOutputQueue()
- Specified by:
getOutputQueuein interfaceCpeConfiguration
-
getMaxTimeToWait
public int getMaxTimeToWait()
- Specified by:
getMaxTimeToWaitin interfaceCpeConfiguration
-
setOutputQueue
public void setOutputQueue(OutputQueue queue)
- Parameters:
queue-
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-
-