Class Performance.HdfsWorker

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

    public static class Performance.HdfsWorker
    extends Performance.Worker
    A worker for HDFS.
    • 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
      HdfsWorker​(int id, int left, int right, java.nio.ByteBuffer buf, boolean write, java.lang.String msg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void io()
      Creates IO utilization.
      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

      • HdfsWorker

        public HdfsWorker​(int id,
                          int left,
                          int right,
                          java.nio.ByteBuffer buf,
                          boolean write,
                          java.lang.String msg)
                   throws java.io.IOException
        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 buffer
        write - indicates if data is written to HDFS
        msg - the message to write
        Throws:
        java.io.IOException
    • Method Detail

      • io

        public void io()
                throws java.io.IOException
        Creates IO utilization.
        Throws:
        java.io.IOException
      • run

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