Package org.apache.hadoop.hbase.client
Class ConnectionImplementation.MasterServiceStubMaker
java.lang.Object
org.apache.hadoop.hbase.client.ConnectionImplementation.MasterServiceStubMaker
- Enclosing class:
- ConnectionImplementation
Class to make a MasterServiceStubMaker stub.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidisMasterRunning(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface stub) (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterfacemakeStub()Create a stub against the master.private org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterfaceCreate a stub.
-
Constructor Details
-
MasterServiceStubMaker
private MasterServiceStubMaker()
-
-
Method Details
-
isMasterRunning
private void isMasterRunning(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface stub) throws IOException - Throws:
IOException
-
makeStubNoRetries
private org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface makeStubNoRetries() throws IOException, org.apache.zookeeper.KeeperExceptionCreate a stub. Try once only. It is not typed because there is no common type to protobuf services nor their interfaces. Let the caller do appropriate casting.- Returns:
- A stub for master services.
- Throws:
IOExceptionorg.apache.zookeeper.KeeperException
-
makeStub
org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface makeStub() throws IOExceptionCreate a stub against the master. Retry if necessary.- Returns:
- A stub to do
intfagainst the master - Throws:
MasterNotRunningException- if master is not runningIOException
-