org.apache.uima.examples.cpe
Class SimpleRunCPM

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.uima.examples.cpe.SimpleRunCPM
All Implemented Interfaces:
java.lang.Runnable

public class SimpleRunCPM
extends java.lang.Thread

Main Class that runs the Collection Processing Manager (CPM). This class reads descriptor files and initiailizes the following components:

  1. CollectionReader
  2. Analysis Engine
  3. CAS Consumer

It also registers a callback listener with the CPM, which will print progress and statistics to System.out.
Command lines arguments for the run are :
  1. args[0] : CollectionReader descriptor file
  2. args[1] : CAS Consumer descriptor file.
  3. args[2] : AnnotationPrinter descriptor file

Example :
java -cp < all jar files needed > org.apache.uima.example.cpe.SimpleRunCPE descriptors/collection_reader/FileSystemCollectionReader.xml descriptors/analysis_engine/PersonTitleAnnotator.xml descriptors/cas_consumer/XmiWrtierCasConsumer.xml


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimpleRunCPM(java.lang.String[] args)
          Constructor for the class.
 
Method Summary
static void main(java.lang.String[] args)
          main class.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleRunCPM

public SimpleRunCPM(java.lang.String[] args)
             throws UIMAException,
                    java.io.IOException
Constructor for the class.

Parameters:
args - command line arguments into the program - see class description
Throws:
UIMAException
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws UIMAException,
                        java.io.IOException
main class.

Parameters:
args - Command line arguments - see class description
Throws:
UIMAException
java.io.IOException


Copyright © 2011. All Rights Reserved.