Class JMXNioServerPool

java.lang.Object
org.jppf.jmxremote.nio.JMXNioServerPool

public class JMXNioServerPool extends Object
A pool of JMXNioServer instances, implemented as a singleton, which allows spreading the I/O operations over multiple NIO selector threads.
Author:
Laurent Cohen
  • Constructor Details

    • JMXNioServerPool

      public JMXNioServerPool()
  • Method Details

    • getServer

      public static JMXNioServer getServer() throws Exception
      Get a server from the pool.
      Returns:
      a JMXNioServer instance.
      Throws:
      Exception - if any error occurs.
    • close

      public static void close()
      CLose this pool and all the servers in it.
    • getServers

      public static JMXNioServer[] getServers() throws Exception
      Returns:
      the servers in this pool.
      Throws:
      Exception - if any error occurs.