Search in sources :

Example 1 with TransitionToStandbyRequestProto

use of org.apache.hadoop.ha.proto.HAServiceProtocolProtos.TransitionToStandbyRequestProto in project hadoop by apache.

the class HAServiceProtocolClientSideTranslatorPB method transitionToStandby.

@Override
public void transitionToStandby(StateChangeRequestInfo reqInfo) throws IOException {
    try {
        TransitionToStandbyRequestProto req = TransitionToStandbyRequestProto.newBuilder().setReqInfo(convert(reqInfo)).build();
        rpcProxy.transitionToStandby(NULL_CONTROLLER, req);
    } catch (ServiceException e) {
        throw ProtobufHelper.getRemoteException(e);
    }
}
Also used : TransitionToStandbyRequestProto(org.apache.hadoop.ha.proto.HAServiceProtocolProtos.TransitionToStandbyRequestProto) ServiceException(com.google.protobuf.ServiceException)

Aggregations

ServiceException (com.google.protobuf.ServiceException)1 TransitionToStandbyRequestProto (org.apache.hadoop.ha.proto.HAServiceProtocolProtos.TransitionToStandbyRequestProto)1