abstract class ConnectionManager.HConnectionImplementation.StubMaker extends Object
Constructor and Description |
---|
ConnectionManager.HConnectionImplementation.StubMaker() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getServiceName()
Returns the name of the service stub being created.
|
protected abstract void |
isMasterRunning()
Once setup, check it works by doing isMasterRunning check.
|
(package private) Object |
makeStub()
Create a stub against the master.
|
protected abstract Object |
makeStub(com.google.protobuf.BlockingRpcChannel channel)
Make stub and cache it internal so can be used later doing the isMasterRunning call.
|
private Object |
makeStubNoRetries()
Create a stub.
|
ConnectionManager.HConnectionImplementation.StubMaker()
protected abstract String getServiceName()
protected abstract Object makeStub(com.google.protobuf.BlockingRpcChannel channel)
channel
- protected abstract void isMasterRunning() throws com.google.protobuf.ServiceException
com.google.protobuf.ServiceException
private Object makeStubNoRetries() throws IOException, org.apache.zookeeper.KeeperException, com.google.protobuf.ServiceException
IOException
org.apache.zookeeper.KeeperException
com.google.protobuf.ServiceException
Object makeStub() throws IOException
intf
against the masterMasterNotRunningException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.