Example usage for org.apache.hadoop.ha HealthCheckFailedException HealthCheckFailedException

List of usage examples for org.apache.hadoop.ha HealthCheckFailedException HealthCheckFailedException

Introduction

In this page you can find the example usage for org.apache.hadoop.ha HealthCheckFailedException HealthCheckFailedException.

Prototype

public HealthCheckFailedException(final String message) 

Source Link

Usage

From source file:io.hops.util.GroupMembershipService.java

License:Apache License

@Override
public synchronized void monitorHealth() throws IOException {
    checkAccess("monitorHealth");
    if (isRMActive() && !rm.areSchedulerServicesRunning()) {
        throw new HealthCheckFailedException("Active ResourceManager services are not running!");
    }/* w  ww .j av a  2  s.  c o m*/
}