public class EndpointCache extends Object implements CrailStatistics.StatisticsProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
EndpointCache.StorageEndpointCache |
| Constructor and Description |
|---|
EndpointCache(int fsId,
LinkedList<StorageClient> storageClients) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
StorageEndpoint |
getDataEndpoint(DataNodeInfo dataNodeInfo) |
void |
mergeStatistics(CrailStatistics.StatisticsProvider provider) |
String |
printStatistics() |
String |
providerName() |
void |
resetStatistics() |
int |
size() |
public EndpointCache(int fsId,
LinkedList<StorageClient> storageClients)
public String providerName()
providerName in interface CrailStatistics.StatisticsProviderpublic String printStatistics()
printStatistics in interface CrailStatistics.StatisticsProviderpublic void mergeStatistics(CrailStatistics.StatisticsProvider provider)
mergeStatistics in interface CrailStatistics.StatisticsProviderpublic void resetStatistics()
resetStatistics in interface CrailStatistics.StatisticsProviderpublic StorageEndpoint getDataEndpoint(DataNodeInfo dataNodeInfo) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic int size()
public void close()
throws IOException
IOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.