Class CpeConfigurationImpl

java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.collection.impl.metadata.cpe.CpeConfigurationImpl
All Implemented Interfaces:
Serializable, Cloneable, CpeConfiguration, MetaDataObject, XMLizable

public class CpeConfigurationImpl extends MetaDataObject_impl implements CpeConfiguration
The Class CpeConfigurationImpl.
See Also:
  • Constructor Details Link icon

    • CpeConfigurationImpl Link icon

      public CpeConfigurationImpl()
      Instantiates a new cpe configuration impl.
  • Method Details Link icon

    • setDeployment Link icon

      public void setDeployment(String aDeploy) throws CpeDescriptorException
      Description copied from interface: CpeConfiguration
      Sets 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:
      setDeployment in interface CpeConfiguration
      Parameters:
      aDeploy - - deployment mode of the CPE
      Throws:
      CpeDescriptorException - tbd
    • getDeployment Link icon

      public String getDeployment()
      Description copied from interface: CpeConfiguration
      Returns CPE deployment mode as "immediate", "vinceService", "interactive".
      Specified by:
      getDeployment in interface CpeConfiguration
      Returns:
      - deployment mode
      See Also:
    • setNumToProcess Link icon

      public void setNumToProcess(int aNumToProcess) throws CpeDescriptorException
      Description copied from interface: CpeConfiguration
      Sets number of entities to process by the CPE.
      Specified by:
      setNumToProcess in interface CpeConfiguration
      Parameters:
      aNumToProcess - - number of entities to process (-1 - for ALL)
      Throws:
      CpeDescriptorException - tbd
    • getNumToProcess Link icon

      public int getNumToProcess()
      Description copied from interface: CpeConfiguration
      Returns number of entities to process
      Specified by:
      getNumToProcess in interface CpeConfiguration
      Returns:
      - number of entities to process (-1 - for ALL)
    • setStartingEntityId Link icon

      public void setStartingEntityId(String aStartAt)
      Description copied from interface: CpeConfiguration
      Sets id of the first entity the CPE will begin processing. Useful when starting the CPE from a known point.
      Specified by:
      setStartingEntityId in interface CpeConfiguration
      Parameters:
      aStartAt - - id of first entity
    • getStartingEntityId Link icon

      public String getStartingEntityId()
      Description copied from interface: CpeConfiguration
      Returns id of the first entity the CPE will begin processing. Useful when starting the CPE from a known point.
      Specified by:
      getStartingEntityId in interface CpeConfiguration
      Returns:
      - id of first entity
    • setCheckpoint Link icon

      public void setCheckpoint(CpeCheckpoint aCheckpoint) throws CpeDescriptorException
      Description copied from interface: CpeConfiguration
      Sets Checkpoint object containing checkpoint file and frequency of checkpoints.
      Specified by:
      setCheckpoint in interface CpeConfiguration
      Parameters:
      aCheckpoint - - checkpoint object
      Throws:
      CpeDescriptorException - tbd
    • getCheckpoint Link icon

      public CpeCheckpoint getCheckpoint()
      Description copied from interface: CpeConfiguration
      Returns Checkpoint object containing checkpoint file and frequency of checkpoints.
      Specified by:
      getCheckpoint in interface CpeConfiguration
      Returns:
      CpeCheckpoint
    • removeCheckpoint Link icon

      public void removeCheckpoint()
      Description copied from interface: CpeConfiguration
      Removes checkpoint object
      Specified by:
      removeCheckpoint in interface CpeConfiguration
    • setCpeTimer Link icon

      public void setCpeTimer(CpeTimer aTimer)
      Description copied from interface: CpeConfiguration
      Sets 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:
      setCpeTimer in interface CpeConfiguration
      Parameters:
      aTimer - - timer class
    • getCpeTimer Link icon

      public CpeTimer getCpeTimer()
      Description copied from interface: CpeConfiguration
      Returns 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:
      getCpeTimer in interface CpeConfiguration
      Returns:
      - timer class
    • removeCpeTimer Link icon

      public void removeCpeTimer()
      Specified by:
      removeCpeTimer in interface CpeConfiguration
    • getDeployAs Link icon

      public String getDeployAs()
      Gets the deploy as.
      Returns:
      the deploy as
    • getNum2Process Link icon

      public long getNum2Process()
      Gets the num 2 process.
      Returns:
      the num 2 process
    • getStartAt Link icon

      public String getStartAt()
      Gets the start at.
      Returns:
      the start at
    • getTimerImpl Link icon

      public String getTimerImpl()
      Specified by:
      getTimerImpl in interface CpeConfiguration
    • setDeployAs Link icon

      public void setDeployAs(String string)
      Sets the deploy as.
      Parameters:
      string - the new deploy as
    • setNumToProcess Link icon

      public void setNumToProcess(long l)
      Sets the num to process.
      Parameters:
      l - the new num to process
    • setStartAt Link icon

      public void setStartAt(String aStartAt)
      Sets the start at.
      Parameters:
      aStartAt - the new start at
    • setTimerImpl Link icon

      public void setTimerImpl(String string)
      Sets the timer impl.
      Parameters:
      string - the new timer impl
    • getOutputQueue Link icon

      public OutputQueue getOutputQueue()
      Specified by:
      getOutputQueue in interface CpeConfiguration
    • getMaxTimeToWait Link icon

      public int getMaxTimeToWait()
      Specified by:
      getMaxTimeToWait in interface CpeConfiguration
    • setOutputQueue Link icon

      public void setOutputQueue(OutputQueue queue)
      Sets the output queue.
      Parameters:
      queue - the new output queue
    • getXmlizationInfo Link icon

      protected XmlizationInfo getXmlizationInfo()
      Description copied from class: MetaDataObject_impl
      To be implemented by subclasses to return information describing how to represent this object in XML.
      Specified by:
      getXmlizationInfo in class MetaDataObject_impl
      Returns:
      information defining this object's XML representation