@InterfaceAudience.Private public class CachedClusterId extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
CachedClusterId(Server server,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheStats() |
String |
getFromCacheOrFetch()
Fetches the ClusterId from FS if it is not cached locally.
|
public CachedClusterId(Server server, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic String getFromCacheOrFetch()
public int getCacheStats()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.