Package org.jppf.jmxremote.nio
Class JMXNioServerPool
java.lang.Object
org.jppf.jmxremote.nio.JMXNioServerPool
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()CLose this pool and all the servers in it.static JMXNioServerGet a server from the pool.static JMXNioServer[]
-
Constructor Details
-
JMXNioServerPool
public JMXNioServerPool()
-
-
Method Details
-
getServer
Get a server from the pool.- Returns:
- a
JMXNioServerinstance. - Throws:
Exception- if any error occurs.
-
close
public static void close()CLose this pool and all the servers in it. -
getServers
- Returns:
- the servers in this pool.
- Throws:
Exception- if any error occurs.
-