Class ThreadStreamExec

  • All Implemented Interfaces:
    java.lang.Runnable

    public class ThreadStreamExec
    extends java.lang.Thread
    Wrap StreamExec in a thread.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      StreamExec streamExec
      The stream.
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadStreamExec​(java.lang.String name, java.util.List args)
      Consruct a ThreadStreamExec.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Start the streamExec.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • streamExec

        public StreamExec streamExec
        The stream.
    • Constructor Detail

      • ThreadStreamExec

        public ThreadStreamExec​(java.lang.String name,
                                java.util.List args)
        Consruct a ThreadStreamExec.
        Parameters:
        name - The name of the streamExec.
        args - The commands to be invoked.
    • Method Detail

      • run

        public void run()
        Start the streamExec.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread