@VisibleForTesting public static class NodesListManager.CachedResolver extends org.apache.hadoop.service.AbstractService implements NodesListManager.Resolver
| Constructor and Description |
|---|
CachedResolver(org.apache.hadoop.yarn.util.Clock clock,
int expiryIntervalSecs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(String hostName,
String ip) |
TimerTask |
getExpireChecker() |
void |
removeFromCache(String hostName) |
String |
resolve(String hostName) |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic CachedResolver(org.apache.hadoop.yarn.util.Clock clock,
int expiryIntervalSecs)
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void removeFromCache(String hostName)
public String resolve(String hostName)
resolve in interface NodesListManager.Resolver@VisibleForTesting public TimerTask getExpireChecker()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.