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
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
isMasterRunning
(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface stub) (package private) org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface
makeStub()
Create a stub against the master.private org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface
Create 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:
IOException
org.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
intf
against the master - Throws:
MasterNotRunningException
- if master is not runningIOException
-