storage_service: Stub start_native_transport

Needed by API.
This commit is contained in:
Asias He
2015-08-28 10:26:06 +08:00
parent d7d4217387
commit 4e765b06ef
2 changed files with 21 additions and 17 deletions

View File

@@ -1239,4 +1239,23 @@ bool storage_service::is_rpc_server_running() {
return true;
}
future<> storage_service::start_native_transport() {
#if 0
if (daemon == null)
{
throw new IllegalStateException("No configured daemon");
}
try
{
daemon.nativeServer.start();
}
catch (Exception e)
{
throw new RuntimeException("Error starting native transport: " + e.getMessage());
}
#endif
return make_ready_future<>();
}
} // namespace service

View File

@@ -207,24 +207,9 @@ public:
bool is_rpc_server_running();
future<> start_native_transport();
#if 0
public void startNativeTransport()
{
if (daemon == null)
{
throw new IllegalStateException("No configured daemon");
}
try
{
daemon.nativeServer.start();
}
catch (Exception e)
{
throw new RuntimeException("Error starting native transport: " + e.getMessage());
}
}
public void stopNativeTransport()
{
if (daemon == null)