java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, NodesListManager.Resolver@VisibleForTesting public static class NodesListManager.CachedResolver extends org.apache.hadoop.service.AbstractService implements NodesListManager.Resolver
| Constructor | Description |
|---|---|
CachedResolver(org.apache.hadoop.yarn.util.Clock clock,
int expiryIntervalSecs) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addToCache(java.lang.String hostName,
java.lang.String ip) |
|
java.util.TimerTask |
getExpireChecker() |
|
void |
removeFromCache(java.lang.String hostName) |
|
java.lang.String |
resolve(java.lang.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 java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exception@VisibleForTesting
public void addToCache(java.lang.String hostName,
java.lang.String ip)
public void removeFromCache(java.lang.String hostName)
public java.lang.String resolve(java.lang.String hostName)
resolve in interface NodesListManager.Resolver@VisibleForTesting public java.util.TimerTask getExpireChecker()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.