Class DebugControlThread

java.lang.Object
org.apache.uima.collection.impl.cpm.engine.DebugControlThread
All Implemented Interfaces:
Runnable

public class DebugControlThread extends Object implements Runnable
The Class DebugControlThread.
  • Field Details

    • NOTFOUND

      private static final String NOTFOUND
      The Constant NOTFOUND.
      See Also:
    • fileName

      private String fileName
      The file name.
    • stop

      private volatile boolean stop
      The stop.
    • checkpointFrequency

      private int checkpointFrequency
      The checkpoint frequency.
    • pause

      private boolean pause
      The pause.
    • lockForPause

      private final Object lockForPause
      The lock for pause.
    • cpm

      private CPMEngine cpm
      The cpm.
  • Constructor Details

    • DebugControlThread

      public DebugControlThread(CPMEngine aCpm, String aFilename, int aCheckpointFrequency)
      Instantiates a new debug control thread.
      Parameters:
      aCpm - the a cpm
      aFilename - the a filename
      aCheckpointFrequency - the a checkpoint frequency
  • Method Details

    • start

      public void start() throws RuntimeException
      Start.
      Throws:
      RuntimeException - the runtime exception
    • stop

      public void stop()
      Stop.
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • interpretAndExecuteCommand

      private void interpretAndExecuteCommand(String aCommand)
      Interpret and execute command.
      Parameters:
      aCommand - the a command
    • deleteCheckpoint

      public void deleteCheckpoint()
      Delete checkpoint.
    • pause

      public void pause()
      Pause.
    • resume

      public void resume()
      Resume.
    • doCheckpoint

      public String doCheckpoint()
      Do checkpoint.
      Returns:
      the string
    • exists

      public boolean exists()
      Exists.
      Returns:
      true, if successful