Class JobMasterClientPool

  • All Implemented Interfaces:
    alluxio.resource.Pool<JobMasterClient>, java.io.Closeable, java.lang.AutoCloseable

    @ThreadSafe
    public final class JobMasterClientPool
    extends alluxio.resource.ResourcePool<JobMasterClient>
    Class for managing job master clients. After obtaining a client with ResourcePool.acquire(), ResourcePool.release(Object) must be called when the thread is done using the client.
    • Field Summary

      • Fields inherited from class alluxio.resource.ResourcePool

        mCurrentCapacity, mMaxCapacity, mResources
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      JobMasterClient createNewResource()  
      • Methods inherited from class alluxio.resource.ResourcePool

        acquire, acquire, release, size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface alluxio.resource.Pool

        acquireCloseable, acquireCloseable
    • Constructor Detail

      • JobMasterClientPool

        public JobMasterClientPool​(JobMasterClientContext context)
        Creates a new job master client pool.
        Parameters:
        context - Job master connection information
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class alluxio.resource.ResourcePool<JobMasterClient>
        Throws:
        java.io.IOException
      • createNewResource

        public JobMasterClient createNewResource()
        Specified by:
        createNewResource in class alluxio.resource.ResourcePool<JobMasterClient>