Search in sources :

Example 1 with JobMasterRpcHealthCheckClient

use of alluxio.master.job.JobMasterRpcHealthCheckClient in project alluxio by Alluxio.

the class JobMasterHealthCheckClientIntegrationTest method before.

@Before
public final void before() throws Exception {
    mLocalAlluxioJobCluster = new LocalAlluxioJobCluster();
    mLocalAlluxioJobCluster.start();
    InetSocketAddress address = mLocalAlluxioJobCluster.getMaster().getRpcAddress();
    mHealthCheckClient = new JobMasterRpcHealthCheckClient(address, () -> new CountingRetry(1), ServerConfiguration.global());
}
Also used : LocalAlluxioJobCluster(alluxio.master.LocalAlluxioJobCluster) CountingRetry(alluxio.retry.CountingRetry) InetSocketAddress(java.net.InetSocketAddress) JobMasterRpcHealthCheckClient(alluxio.master.job.JobMasterRpcHealthCheckClient) Before(org.junit.Before)

Aggregations

LocalAlluxioJobCluster (alluxio.master.LocalAlluxioJobCluster)1 JobMasterRpcHealthCheckClient (alluxio.master.job.JobMasterRpcHealthCheckClient)1 CountingRetry (alluxio.retry.CountingRetry)1 InetSocketAddress (java.net.InetSocketAddress)1 Before (org.junit.Before)1