public class TcpStorageEndpoint extends Object implements StorageEndpoint
| Constructor and Description |
|---|
TcpStorageEndpoint(com.ibm.narpc.NaRPCEndpoint<TcpStorageRequest,TcpStorageResponse> endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(InetSocketAddress address) |
boolean |
isLocal() |
StorageFuture |
read(org.apache.crail.CrailBuffer buffer,
org.apache.crail.metadata.BlockInfo block,
long offset) |
StorageFuture |
write(org.apache.crail.CrailBuffer buffer,
org.apache.crail.metadata.BlockInfo block,
long offset) |
public TcpStorageEndpoint(com.ibm.narpc.NaRPCEndpoint<TcpStorageRequest,TcpStorageResponse> endpoint)
public void connect(InetSocketAddress address) throws IOException
IOExceptionpublic void close()
throws IOException,
InterruptedException
close in interface StorageEndpointIOExceptionInterruptedExceptionpublic boolean isLocal()
isLocal in interface StorageEndpointpublic StorageFuture read(org.apache.crail.CrailBuffer buffer, org.apache.crail.metadata.BlockInfo block, long offset) throws IOException, InterruptedException
read in interface StorageEndpointIOExceptionInterruptedExceptionpublic StorageFuture write(org.apache.crail.CrailBuffer buffer, org.apache.crail.metadata.BlockInfo block, long offset) throws IOException, InterruptedException
write in interface StorageEndpointIOExceptionInterruptedExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.