public class TezAmRegistryImpl extends ZkRegistryBase<TezAmInstance>
conf, doCheckAcls, encoder, hostname, UNIQUE_ID, UNIQUE_IDENTIFIER, USER_SCOPE_PATH_PREFIX, WORKER_GROUP, WORKER_PREFIX, workersPath, zooKeeperClient| Modifier and Type | Method and Description |
|---|---|
static TezAmRegistryImpl |
create(org.apache.hadoop.conf.Configuration conf,
boolean useSecureZk) |
protected TezAmInstance |
createServiceInstance(org.apache.hadoop.registry.client.types.ServiceRecord srv) |
TezAmInstance |
getInstance(String name) |
String |
getRegistryName() |
protected String |
getZkPathUser(org.apache.hadoop.conf.Configuration conf) |
void |
initializeWithoutRegistering() |
void |
populateCache(boolean doInvokeListeners) |
String |
register(int amPort,
int pluginPort,
String sessionId,
String serializedToken,
String jobIdForToken,
int guaranteedCount) |
void |
updateGuaranteed(int guaranteedCount) |
ensureInstancesCache, getAllInternal, getByHostInternal, getInstanceByPath, getRegistrationZnodePath, getRootNamespace, getWorkerData, populateCache, registerServiceRecord, registerServiceRecord, registerStateChangeListener, sizeInternal, start, stop, unregisterInternal, updateServiceRecordpublic static TezAmRegistryImpl create(org.apache.hadoop.conf.Configuration conf, boolean useSecureZk)
public void initializeWithoutRegistering()
throws IOException
IOExceptionpublic void populateCache(boolean doInvokeListeners)
throws IOException
IOExceptionpublic String register(int amPort, int pluginPort, String sessionId, String serializedToken, String jobIdForToken, int guaranteedCount) throws IOException
IOExceptionpublic void updateGuaranteed(int guaranteedCount)
throws IOException
IOExceptionpublic TezAmInstance getInstance(String name)
protected TezAmInstance createServiceInstance(org.apache.hadoop.registry.client.types.ServiceRecord srv) throws IOException
createServiceInstance in class ZkRegistryBase<TezAmInstance>IOExceptionprotected String getZkPathUser(org.apache.hadoop.conf.Configuration conf)
getZkPathUser in class ZkRegistryBase<TezAmInstance>public String getRegistryName()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.