public static class EndpointCache.StorageEndpointCache extends Object
| Constructor and Description |
|---|
StorageEndpointCache(int fsId,
StorageClient storageClient,
int storageType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
StorageEndpoint |
getDataEndpoint(DataNodeInfo dataNodeInfo) |
int |
getStorageType() |
int |
size() |
public StorageEndpointCache(int fsId,
StorageClient storageClient,
int storageType)
public void close()
throws IOException
IOExceptionpublic StorageEndpoint getDataEndpoint(DataNodeInfo dataNodeInfo) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic int size()
public int getStorageType()
Copyright © 2018 The Apache Software Foundation. All rights reserved.