-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NBS-1704: extract common code for unix domain sockets (#283)
* NBS-1704: extract common * fix tests * update
- Loading branch information
Showing
21 changed files
with
270 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "client_storage_factory.h" | ||
|
||
namespace NCloud::NBlockStore::NServer { | ||
|
||
using namespace NCloud::NStorage::NServer; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
struct TClientStorageFactoryStub | ||
: public IClientStorageFactory | ||
{ | ||
NStorage::NServer::IClientStoragePtr CreateClientStorage( | ||
IBlockStorePtr service) override | ||
{ | ||
Y_UNUSED(service); | ||
return CreateClientStorageStub(); | ||
} | ||
}; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
IClientStorageFactoryPtr CreateClientStorageFactoryStub() | ||
{ | ||
return std::make_shared<TClientStorageFactoryStub>(); | ||
} | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
} // namespace NCloud::NBlockStore::NServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "public.h" | ||
|
||
#include <cloud/blockstore/libs/service/public.h> | ||
|
||
#include <cloud/storage/core/libs/uds/client_storage.h> | ||
|
||
namespace NCloud::NBlockStore::NServer { | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
struct IClientStorageFactory | ||
{ | ||
virtual ~IClientStorageFactory() = default; | ||
|
||
virtual NStorage::NServer::IClientStoragePtr CreateClientStorage( | ||
IBlockStorePtr service) = 0; | ||
}; | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
IClientStorageFactoryPtr CreateClientStorageFactoryStub(); | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
} // namespace NCloud::NBlockStore::NServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.