Package org.apache.hadoop.hbase.ipc
Class IntegrationTestRpcClient.Cluster
java.lang.Object
org.apache.hadoop.hbase.ipc.IntegrationTestRpcClient.Cluster
- Enclosing class:
- IntegrationTestRpcClient
-
Field Summary
Modifier and TypeFieldDescription(package private) ReadWriteLock
(package private) int
(package private) int
(package private) HashMap<InetSocketAddress,
org.apache.hadoop.hbase.ipc.RpcServer> (package private) List<org.apache.hadoop.hbase.ipc.RpcServer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) org.apache.hadoop.hbase.ipc.RpcServer
(package private) org.apache.hadoop.hbase.ipc.RpcServer
(package private) void
(package private) void
(package private) void
stopServer
(org.apache.hadoop.hbase.ipc.RpcServer rpcServer)
-
Field Details
-
lock
-
rpcServers
HashMap<InetSocketAddress,org.apache.hadoop.hbase.ipc.RpcServer> rpcServers -
serverList
List<org.apache.hadoop.hbase.ipc.RpcServer> serverList -
maxServers
int maxServers -
minServers
int minServers
-
-
Constructor Details
-
Cluster
Cluster(int minServers, int maxServers)
-
-
Method Details
-
startServer
- Throws:
IOException
-
stopRandomServer
- Throws:
Exception
-
stopServer
- Throws:
InterruptedException
-
stopRunning
- Throws:
InterruptedException
-
getRandomServer
org.apache.hadoop.hbase.ipc.RpcServer getRandomServer()
-