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

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

Introduction

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

Prototype

public ServiceFailedException(String message, Throwable cause) 

Source Link

Usage

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

License:Apache License

@Override
public synchronized void transitionToActive(HAServiceProtocol.StateChangeRequestInfo reqInfo)
        throws IOException {
    // call refreshAdminAcls before HA state transition
    // for the case that adminAcls have been updated in previous active RM
    try {//ww w. jav a 2s.  com
        refreshAdminAcls(false);
    } catch (YarnException ex) {
        throw new ServiceFailedException("Can not execute refreshAdminAcls", ex);
    }
    throw new UnsupportedOperationException("not implemented yet");
}

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

License:Apache License

@Override
public synchronized void transitionToStandby(HAServiceProtocol.StateChangeRequestInfo reqInfo)
        throws IOException {
    // call refreshAdminAcls before HA state transition
    // for the case that adminAcls have been updated in previous active RM
    try {//w  w w.  j a va 2 s . com
        refreshAdminAcls(false);
    } catch (YarnException ex) {
        throw new ServiceFailedException("Can not execute refreshAdminAcls", ex);
    }
    throw new UnsupportedOperationException("not implemented yet");
}