public class TcpStorageServer extends Object implements Runnable, StorageServer, com.ibm.narpc.NaRPCService<TcpStorageRequest,TcpStorageResponse>
| Constructor and Description |
|---|
TcpStorageServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(com.ibm.narpc.NaRPCServerChannel channel) |
StorageResource |
allocateResource() |
TcpStorageRequest |
createRequest() |
InetSocketAddress |
getAddress() |
void |
init(org.apache.crail.conf.CrailConfiguration conf,
String[] args) |
boolean |
isAlive() |
void |
printConf(org.slf4j.Logger logger) |
TcpStorageResponse |
processRequest(TcpStorageRequest request) |
void |
removeEndpoint(com.ibm.narpc.NaRPCServerChannel channel) |
void |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmainpublic void init(org.apache.crail.conf.CrailConfiguration conf,
String[] args)
throws Exception
init in interface org.apache.crail.conf.ConfigurableExceptionpublic void printConf(org.slf4j.Logger logger)
printConf in interface org.apache.crail.conf.Configurablepublic StorageResource allocateResource() throws Exception
allocateResource in interface StorageServerExceptionpublic InetSocketAddress getAddress()
getAddress in interface StorageServerpublic boolean isAlive()
isAlive in interface StorageServerpublic TcpStorageRequest createRequest()
createRequest in interface com.ibm.narpc.NaRPCService<TcpStorageRequest,TcpStorageResponse>public TcpStorageResponse processRequest(TcpStorageRequest request)
processRequest in interface com.ibm.narpc.NaRPCService<TcpStorageRequest,TcpStorageResponse>public void addEndpoint(com.ibm.narpc.NaRPCServerChannel channel)
addEndpoint in interface com.ibm.narpc.NaRPCService<TcpStorageRequest,TcpStorageResponse>public void removeEndpoint(com.ibm.narpc.NaRPCServerChannel channel)
removeEndpoint in interface com.ibm.narpc.NaRPCService<TcpStorageRequest,TcpStorageResponse>Copyright © 2018 The Apache Software Foundation. All rights reserved.