Search in sources :

Example 1 with JobWorkerHealthCheckClient

use of alluxio.worker.job.JobWorkerHealthCheckClient in project alluxio by Alluxio.

the class JobWorkerHealthCheckClientIntegrationTest method before.

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

Aggregations

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