public abstract static class HAServiceProtocolProtos.HAServiceProtocolService extends Object implements com.google.protobuf.Service
hadoop.common.HAServiceProtocolService
Protocol interface provides High availability related primitives to monitor and failover a service. For details see o.a.h.ha.HAServiceProtocol.
Modifier and Type | Class and Description |
---|---|
static interface |
HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface |
static interface |
HAServiceProtocolProtos.HAServiceProtocolService.Interface |
static class |
HAServiceProtocolProtos.HAServiceProtocolService.Stub |
Modifier | Constructor and Description |
---|---|
protected |
HAServiceProtocolProtos.HAServiceProtocolService() |
Modifier and Type | Method and Description |
---|---|
void |
callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.RpcCallback<com.google.protobuf.Message> done) |
static com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptorForType() |
com.google.protobuf.Message |
getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
com.google.protobuf.Message |
getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
abstract void |
getServiceStatus(com.google.protobuf.RpcController controller,
HAServiceProtocolProtos.GetServiceStatusRequestProto request,
com.google.protobuf.RpcCallback<HAServiceProtocolProtos.GetServiceStatusResponseProto> done)
rpc getServiceStatus(.hadoop.common.GetServiceStatusRequestProto) returns (.hadoop.common.GetServiceStatusResponseProto); |
abstract void |
monitorHealth(com.google.protobuf.RpcController controller,
HAServiceProtocolProtos.MonitorHealthRequestProto request,
com.google.protobuf.RpcCallback<HAServiceProtocolProtos.MonitorHealthResponseProto> done)
rpc monitorHealth(.hadoop.common.MonitorHealthRequestProto) returns (.hadoop.common.MonitorHealthResponseProto); |
static HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface |
newBlockingStub(com.google.protobuf.BlockingRpcChannel channel) |
static com.google.protobuf.BlockingService |
newReflectiveBlockingService(HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface impl) |
static com.google.protobuf.Service |
newReflectiveService(HAServiceProtocolProtos.HAServiceProtocolService.Interface impl) |
static HAServiceProtocolProtos.HAServiceProtocolService.Stub |
newStub(com.google.protobuf.RpcChannel channel) |
abstract void |
transitionToActive(com.google.protobuf.RpcController controller,
HAServiceProtocolProtos.TransitionToActiveRequestProto request,
com.google.protobuf.RpcCallback<HAServiceProtocolProtos.TransitionToActiveResponseProto> done)
rpc transitionToActive(.hadoop.common.TransitionToActiveRequestProto) returns (.hadoop.common.TransitionToActiveResponseProto); |
abstract void |
transitionToStandby(com.google.protobuf.RpcController controller,
HAServiceProtocolProtos.TransitionToStandbyRequestProto request,
com.google.protobuf.RpcCallback<HAServiceProtocolProtos.TransitionToStandbyResponseProto> done)
rpc transitionToStandby(.hadoop.common.TransitionToStandbyRequestProto) returns (.hadoop.common.TransitionToStandbyResponseProto); |
protected HAServiceProtocolProtos.HAServiceProtocolService()
public static com.google.protobuf.Service newReflectiveService(HAServiceProtocolProtos.HAServiceProtocolService.Interface impl)
public static com.google.protobuf.BlockingService newReflectiveBlockingService(HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface impl)
public abstract void monitorHealth(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.MonitorHealthRequestProto request, com.google.protobuf.RpcCallback<HAServiceProtocolProtos.MonitorHealthResponseProto> done)
rpc monitorHealth(.hadoop.common.MonitorHealthRequestProto) returns (.hadoop.common.MonitorHealthResponseProto);
Monitor the health of a service.
public abstract void transitionToActive(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToActiveRequestProto request, com.google.protobuf.RpcCallback<HAServiceProtocolProtos.TransitionToActiveResponseProto> done)
rpc transitionToActive(.hadoop.common.TransitionToActiveRequestProto) returns (.hadoop.common.TransitionToActiveResponseProto);
Request service to tranisition to active state.
public abstract void transitionToStandby(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToStandbyRequestProto request, com.google.protobuf.RpcCallback<HAServiceProtocolProtos.TransitionToStandbyResponseProto> done)
rpc transitionToStandby(.hadoop.common.TransitionToStandbyRequestProto) returns (.hadoop.common.TransitionToStandbyResponseProto);
Request service to transition to standby state.
public abstract void getServiceStatus(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.GetServiceStatusRequestProto request, com.google.protobuf.RpcCallback<HAServiceProtocolProtos.GetServiceStatusResponseProto> done)
rpc getServiceStatus(.hadoop.common.GetServiceStatusRequestProto) returns (.hadoop.common.GetServiceStatusResponseProto);
Get the current status of the service.
public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor()
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Service
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)
callMethod
in interface com.google.protobuf.Service
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getRequestPrototype
in interface com.google.protobuf.Service
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getResponsePrototype
in interface com.google.protobuf.Service
public static HAServiceProtocolProtos.HAServiceProtocolService.Stub newStub(com.google.protobuf.RpcChannel channel)
public static HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface newBlockingStub(com.google.protobuf.BlockingRpcChannel channel)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.