Class Performance.GeneralWorker

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    Performance

    public static class Performance.GeneralWorker
    extends Performance.Worker
    A general worker.
    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      GeneralWorker​(int id, int left, int right, java.nio.ByteBuffer buf, boolean oneToMany, boolean memoryOnly, java.lang.String msg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void memoryCopyPartition()
      Copies a partition in memory.
      void run()  
      • 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
    • Constructor Detail

      • GeneralWorker

        public GeneralWorker​(int id,
                             int left,
                             int right,
                             java.nio.ByteBuffer buf,
                             boolean oneToMany,
                             boolean memoryOnly,
                             java.lang.String msg)
        Parameters:
        id - the id of the worker
        left - the id of the worker on the left
        right - the id of the worker on the right
        buf - the buffered used by the worker
        oneToMany - true if the message should be written, false if it should be read
        memoryOnly - true if the data should reside in memory, false otherwise
        msg - the message to use
    • Method Detail

      • memoryCopyPartition

        public void memoryCopyPartition()
                                 throws java.io.IOException
        Copies a partition in memory.
        Throws:
        java.io.IOException
      • run

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