Move nodestore to its own module

This commit is contained in:
Vinnie Falco
2014-06-15 12:50:44 -07:00
parent d965b23b2a
commit cf3eb24eb0
67 changed files with 411 additions and 369 deletions

View File

@@ -2587,113 +2587,6 @@
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\functional\LoadMonitor.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\NodeStore.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\NodeStore.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Backend.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Database.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\DummyScheduler.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Factory.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Manager.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\NodeObject.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Scheduler.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Task.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Types.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\VisitCallback.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\HyperDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\HyperDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\LevelDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\LevelDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\MemoryFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\MemoryFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\NullFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\NullFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\RocksDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\RocksDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Backend.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\BatchWriter.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\BatchWriter.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Database.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\DatabaseImp.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\DecodedBlob.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\DecodedBlob.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\DummyScheduler.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\EncodedBlob.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\EncodedBlob.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Factory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Manager.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\NodeObject.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Scheduler.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Task.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\Tuning.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\BackendTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\BasicTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\DatabaseTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\tests\TestBase.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\TimingTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\data\crypto\Base58Data.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
@@ -3111,6 +3004,106 @@
<ClCompile Include="..\..\src\ripple\module\websocket\autosocket\LogWebsockets.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\Backend.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Database.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\DummyScheduler.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Factory.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Manager.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\NodeObject.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Scheduler.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Task.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Types.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\HyperDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\HyperDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\LevelDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\LevelDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\MemoryFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\MemoryFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\NullFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\NullFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\RocksDBFactory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\RocksDBFactory.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Backend.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\BatchWriter.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\BatchWriter.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Database.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\DatabaseImp.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\DecodedBlob.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\DecodedBlob.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\DummyScheduler.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\EncodedBlob.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\EncodedBlob.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Factory.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Manager.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\NodeObject.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Scheduler.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Task.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\Tuning.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\tests\BackendTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\tests\BasicTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\tests\DatabaseTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\tests\TestBase.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\tests\TimingTests.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\ripple\peerfinder\api\Callback.h">
</ClInclude>
<ClInclude Include="..\..\src\ripple\peerfinder\api\Config.h">
@@ -3445,8 +3438,6 @@
<ClCompile Include="..\..\src\ripple\unity\common.cpp">
</ClCompile>
<ClCompile Include="..\..\src\ripple\unity\core.cpp">
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='debug|x64'">..\..\src\leveldb\include;..\..\src\rocksdb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='release|x64'">..\..\src\leveldb\include;..\..\src\rocksdb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<ClInclude Include="..\..\src\ripple\unity\core.h">
</ClInclude>
@@ -3478,6 +3469,10 @@
</ClCompile>
<ClInclude Include="..\..\src\ripple\unity\net.h">
</ClInclude>
<ClCompile Include="..\..\src\ripple\unity\nodestore.cpp">
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='debug|x64'">..\..\src\leveldb\include;..\..\src\rocksdb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='release|x64'">..\..\src\leveldb\include;..\..\src\rocksdb\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<ClCompile Include="..\..\src\ripple\unity\overlay.cpp">
</ClCompile>
<ClCompile Include="..\..\src\ripple\unity\peerfinder.cpp">

View File

@@ -412,21 +412,6 @@
<Filter Include="ripple\module\core\functional">
<UniqueIdentifier>{61C8064B-23D8-A490-1614-9D2BA78ADB68}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\core\nodestore">
<UniqueIdentifier>{4AE7A273-D9A0-B02D-B176-CC21D166C84B}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\core\nodestore\api">
<UniqueIdentifier>{AC237386-B045-74E2-4CDE-8DDA6A0A71B8}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\core\nodestore\backend">
<UniqueIdentifier>{0ED4B0B8-7611-3F48-E160-2A56D338F097}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\core\nodestore\impl">
<UniqueIdentifier>{88114987-28FC-EE27-4F1D-8759061A3F77}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\core\nodestore\tests">
<UniqueIdentifier>{7BE989C9-84A9-AF45-2261-A1A45D2AF3FA}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\module\data">
<UniqueIdentifier>{FB5092D7-3AA5-4E7F-F783-C8A929D8B588}</UniqueIdentifier>
</Filter>
@@ -478,6 +463,18 @@
<Filter Include="ripple\module\websocket\autosocket">
<UniqueIdentifier>{587F434F-850E-8776-A958-745B41B9C407}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\nodestore">
<UniqueIdentifier>{D3E78215-1C49-D4FB-E9FC-5074083D184F}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\nodestore\backend">
<UniqueIdentifier>{B79A9145-D4DD-8A3C-59ED-AF8BEE7AD7A3}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\nodestore\impl">
<UniqueIdentifier>{9D691DE1-17A1-5989-3E2E-F69B3E43152F}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\nodestore\tests">
<UniqueIdentifier>{3FDC73B9-A9C7-3533-FD40-E4032B9FA9FB}</UniqueIdentifier>
</Filter>
<Filter Include="ripple\peerfinder">
<UniqueIdentifier>{186385AD-A056-FA3A-7E0E-759EB55E9EAB}</UniqueIdentifier>
</Filter>
@@ -3711,135 +3708,6 @@
<ClInclude Include="..\..\src\ripple\module\core\functional\LoadMonitor.h">
<Filter>ripple\module\core\functional</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\NodeStore.cpp">
<Filter>ripple\module\core\nodestore</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\NodeStore.h">
<Filter>ripple\module\core\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Backend.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Database.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\DummyScheduler.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Factory.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Manager.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\NodeObject.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Scheduler.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Task.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\Types.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\api\VisitCallback.h">
<Filter>ripple\module\core\nodestore\api</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\HyperDBFactory.cpp">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\HyperDBFactory.h">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\LevelDBFactory.cpp">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\LevelDBFactory.h">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\MemoryFactory.cpp">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\MemoryFactory.h">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\NullFactory.cpp">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\NullFactory.h">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\backend\RocksDBFactory.cpp">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\backend\RocksDBFactory.h">
<Filter>ripple\module\core\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Backend.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\BatchWriter.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\BatchWriter.h">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Database.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\DatabaseImp.h">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\DecodedBlob.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\DecodedBlob.h">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\DummyScheduler.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\EncodedBlob.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\EncodedBlob.h">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Factory.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Manager.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\NodeObject.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Scheduler.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\impl\Task.cpp">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\impl\Tuning.h">
<Filter>ripple\module\core\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\BackendTests.cpp">
<Filter>ripple\module\core\nodestore\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\BasicTests.cpp">
<Filter>ripple\module\core\nodestore\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\DatabaseTests.cpp">
<Filter>ripple\module\core\nodestore\tests</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\module\core\nodestore\tests\TestBase.h">
<Filter>ripple\module\core\nodestore\tests</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\module\core\nodestore\tests\TimingTests.cpp">
<Filter>ripple\module\core\nodestore\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\module\data\crypto\Base58Data.cpp">
<Filter>ripple\module\data\crypto</Filter>
</ClCompile>
@@ -4311,6 +4179,126 @@
<ClCompile Include="..\..\src\ripple\module\websocket\autosocket\LogWebsockets.cpp">
<Filter>ripple\module\websocket\autosocket</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\Backend.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Database.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\DummyScheduler.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Factory.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Manager.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\NodeObject.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Scheduler.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Task.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClInclude Include="..\..\src\ripple\nodestore\Types.h">
<Filter>ripple\nodestore</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\HyperDBFactory.cpp">
<Filter>ripple\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\HyperDBFactory.h">
<Filter>ripple\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\LevelDBFactory.cpp">
<Filter>ripple\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\LevelDBFactory.h">
<Filter>ripple\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\MemoryFactory.cpp">
<Filter>ripple\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\MemoryFactory.h">
<Filter>ripple\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\NullFactory.cpp">
<Filter>ripple\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\NullFactory.h">
<Filter>ripple\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\backend\RocksDBFactory.cpp">
<Filter>ripple\nodestore\backend</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\backend\RocksDBFactory.h">
<Filter>ripple\nodestore\backend</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Backend.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\BatchWriter.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\BatchWriter.h">
<Filter>ripple\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Database.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\DatabaseImp.h">
<Filter>ripple\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\DecodedBlob.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\DecodedBlob.h">
<Filter>ripple\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\DummyScheduler.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\EncodedBlob.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\EncodedBlob.h">
<Filter>ripple\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Factory.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Manager.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\NodeObject.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Scheduler.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\impl\Task.cpp">
<Filter>ripple\nodestore\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\impl\Tuning.h">
<Filter>ripple\nodestore\impl</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\tests\BackendTests.cpp">
<Filter>ripple\nodestore\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\tests\BasicTests.cpp">
<Filter>ripple\nodestore\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\nodestore\tests\DatabaseTests.cpp">
<Filter>ripple\nodestore\tests</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\nodestore\tests\TestBase.h">
<Filter>ripple\nodestore\tests</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\nodestore\tests\TimingTests.cpp">
<Filter>ripple\nodestore\tests</Filter>
</ClCompile>
<ClInclude Include="..\..\src\ripple\peerfinder\api\Callback.h">
<Filter>ripple\peerfinder\api</Filter>
</ClInclude>
@@ -4785,6 +4773,9 @@
<ClInclude Include="..\..\src\ripple\unity\net.h">
<Filter>ripple\unity</Filter>
</ClInclude>
<ClCompile Include="..\..\src\ripple\unity\nodestore.cpp">
<Filter>ripple\unity</Filter>
</ClCompile>
<ClCompile Include="..\..\src\ripple\unity\overlay.cpp">
<Filter>ripple\unity</Filter>
</ClCompile>

View File

@@ -518,25 +518,26 @@ for toolchain in toolchains:
objects.append(addSource('src/ripple/unity/beast.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/beastc.c', env, variant_dirs))
objects.append(addSource('src/ripple/unity/common.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/core.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/data.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/http.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/json.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/net.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/overlay.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/rpcx.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/websocket.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/peerfinder.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/protobuf.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/ripple.proto.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/radmap.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/resource.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/rpcx.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/sitefiles.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/sslutil.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/testoverlay.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/types.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/validators.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/websocket.cpp', env, variant_dirs))
objects.append(addSource('src/ripple/unity/core.cpp', env, variant_dirs, [
objects.append(addSource('src/ripple/unity/nodestore.cpp', env, variant_dirs, [
'src/leveldb/include',
#'src/hyperleveldb/include', # hyper
'src/rocksdb/include',

View File

@@ -20,13 +20,12 @@
#ifndef RIPPLE_TAGGEDCACHE_H_INCLUDED
#define RIPPLE_TAGGEDCACHE_H_INCLUDED
#include <ripple/common/UnorderedContainers.h>
#include <beast/chrono/abstract_clock.h>
#include <beast/chrono/chrono_io.h>
#include <beast/Insight.h>
#include <beast/container/hardened_hash.h>
#include <boost/smart_ptr.hpp>
#include <functional>
#include <mutex>
#include <unordered_map>

View File

@@ -18,6 +18,7 @@
//==============================================================================
#include <ripple/module/overlay/api/Overlay.h>
#include <ripple/nodestore/Database.h>
namespace ripple {

View File

@@ -18,7 +18,7 @@
//==============================================================================
#include <ripple/common/jsonrpc_fields.h>
#include <ripple/nodestore/Database.h>
#include <beast/unit_test/suite.h>
namespace ripple {

View File

@@ -22,9 +22,11 @@
#include <ripple/common/seconds_clock.h>
#include <ripple/module/rpc/api/Manager.h>
#include <ripple/module/overlay/api/make_Overlay.h>
#include <ripple/module/overlay/api/make_Overlay.h>
#include <ripple/common/seconds_clock.h>
#include <ripple/module/rpc/api/Manager.h>
#include <ripple/nodestore/Database.h>
#include <ripple/nodestore/DummyScheduler.h>
#include <ripple/nodestore/Manager.h>
#include <beast/module/core/thread/DeadlineTimer.h>

View File

@@ -20,6 +20,9 @@
#ifndef RIPPLE_APP_NODESTORESCHEDULER_H_INCLUDED
#define RIPPLE_APP_NODESTORESCHEDULER_H_INCLUDED
#include <ripple/nodestore/Scheduler.h>
#include <beast/threads/Stoppable.h>
namespace ripple {
/** A NodeStore::Scheduler which uses the JobQueue and implements the Stoppable API. */

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_APP_SQLITEFACTORY_H_INCLUDED
#define RIPPLE_APP_SQLITEFACTORY_H_INCLUDED
#include <ripple/nodestore/Factory.h>
namespace ripple {
/** Factory to produce SQLite backends for the NodeStore.

View File

@@ -17,6 +17,7 @@
*/
//==============================================================================
#include <ripple/nodestore/Database.h>
#include <beast/unit_test/suite.h>
namespace ripple {

View File

@@ -21,7 +21,7 @@
#define RIPPLE_SHAMAP_H
#include <ripple/module/app/main/FullBelowCache.h>
#include <ripple/nodestore/NodeObject.h>
#include <ripple/unity/radmap.h>
#include <unordered_map>

View File

@@ -17,6 +17,7 @@
*/
//==============================================================================
#include <ripple/nodestore/Database.h>
#include <beast/unit_test/suite.h>
namespace ripple {

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include <ripple/nodestore/Database.h>
namespace ripple {
ConsensusTransSetSF::ConsensusTransSetSF (NodeCache& nodeCache)

View File

@@ -20,6 +20,10 @@
#ifndef RIPPLE_BASICS_LOGPARTITION_H_INCLUDED
#define RIPPLE_BASICS_LOGPARTITION_H_INCLUDED
#include <ripple/module/basics/log/LogSeverity.h>
#include <beast/module/core/memory/SharedSingleton.h>
#include <beast/utility/Journal.h>
namespace ripple {
class LogPartition : public beast::Journal::Sink

View File

@@ -21,6 +21,9 @@
#define RIPPLE_COUNTEDOBJECT_H_INCLUDED
#include <beast/utility/LeakChecked.h>
#include <atomic>
#include <utility>
#include <vector>
namespace ripple {

View File

@@ -20,7 +20,13 @@
#ifndef RIPPLE_CORE_CONFIG_H_INCLUDED
#define RIPPLE_CORE_CONFIG_H_INCLUDED
#include <ripple/unity/json.h>
#include <ripple/module/data/protocol/RippleAddress.h>
#include <beast/module/core/files/File.h>
#include <beast/http/URL.h>
#include <boost/filesystem.hpp>
#include <cstdint>
#include <string>
namespace ripple {

View File

@@ -1,66 +0,0 @@
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
//==============================================================================
#include <memory>
#include <vector>
// backend support
#include <ripple/unity/leveldb.h>
#include <ripple/unity/hyperleveldb.h>
#include <ripple/unity/rocksdb.h>
#include <beast/cxx14/memory.h>
#include <ripple/common/seconds_clock.h>
#include <ripple/common/TaggedCache.h>
#include <ripple/common/KeyCache.h>
#include <ripple/module/core/nodestore/impl/Tuning.h>
#include <ripple/module/core/nodestore/impl/DecodedBlob.h>
#include <ripple/module/core/nodestore/impl/EncodedBlob.h>
#include <ripple/module/core/nodestore/impl/BatchWriter.h>
#include <ripple/module/core/nodestore/backend/HyperDBFactory.h>
#include <ripple/module/core/nodestore/backend/HyperDBFactory.cpp>
#include <ripple/module/core/nodestore/backend/LevelDBFactory.h>
#include <ripple/module/core/nodestore/backend/LevelDBFactory.cpp>
#include <ripple/module/core/nodestore/backend/MemoryFactory.h>
#include <ripple/module/core/nodestore/backend/MemoryFactory.cpp>
#include <ripple/module/core/nodestore/backend/NullFactory.h>
#include <ripple/module/core/nodestore/backend/NullFactory.cpp>
#include <ripple/module/core/nodestore/backend/RocksDBFactory.h>
#include <ripple/module/core/nodestore/backend/RocksDBFactory.cpp>
#include <ripple/module/core/nodestore/impl/Backend.cpp>
#include <ripple/module/core/nodestore/impl/BatchWriter.cpp>
#include <ripple/module/core/nodestore/impl/DatabaseImp.h>
#include <ripple/module/core/nodestore/impl/Database.cpp>
#include <ripple/module/core/nodestore/impl/DummyScheduler.cpp>
#include <ripple/module/core/nodestore/impl/DecodedBlob.cpp>
#include <ripple/module/core/nodestore/impl/EncodedBlob.cpp>
#include <ripple/module/core/nodestore/impl/Factory.cpp>
#include <ripple/module/core/nodestore/impl/Manager.cpp>
#include <ripple/module/core/nodestore/impl/NodeObject.cpp>
#include <ripple/module/core/nodestore/impl/Scheduler.cpp>
#include <ripple/module/core/nodestore/impl/Task.cpp>
#include <ripple/module/core/nodestore/tests/TestBase.h>
#include <ripple/module/core/nodestore/tests/BackendTests.cpp>
#include <ripple/module/core/nodestore/tests/BasicTests.cpp>
#include <ripple/module/core/nodestore/tests/DatabaseTests.cpp>
#include <ripple/module/core/nodestore/tests/TimingTests.cpp>

View File

@@ -1,34 +0,0 @@
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
//==============================================================================
#ifndef RIPPLE_NODESTORE_H_INCLUDED
#define RIPPLE_NODESTORE_H_INCLUDED
#include <ripple/module/core/nodestore/api/NodeObject.h>
#include <ripple/module/core/nodestore/api/Types.h>
#include <ripple/module/core/nodestore/api/VisitCallback.h>
#include <ripple/module/core/nodestore/api/Backend.h>
#include <ripple/module/core/nodestore/api/Task.h>
#include <ripple/module/core/nodestore/api/Scheduler.h>
#include <ripple/module/core/nodestore/api/DummyScheduler.h>
#include <ripple/module/core/nodestore/api/Factory.h>
#include <ripple/module/core/nodestore/api/Database.h>
#include <ripple/module/core/nodestore/api/Manager.h>
#endif

View File

@@ -20,6 +20,7 @@
#ifndef RIPPLE_PROTOCOL_H
#define RIPPLE_PROTOCOL_H
#include <ripple/types/api/base_uint.h>
#include <cstdint>
namespace ripple {

View File

@@ -21,7 +21,7 @@
#define RIPPLE_OVERLAY_PEERIMP_H_INCLUDED
#include <ripple/module/overlay/api/predicates.h>
#include <ripple/nodestore/Database.h>
#include <ripple/common/MultiSocket.h>
#include <ripple/module/data/protocol/Protocol.h>
#include <ripple/unity/validators.h>
@@ -1736,6 +1736,8 @@ private:
if (obj.has_hash () && (obj.hash ().size () == (256 / 8)))
{
memcpy (hash.begin (), obj.hash ().data (), 256 / 8);
// VFALCO TODO Move this someplace more sensible so we dont
// need to inject the NodeStore interfaces.
NodeObject::pointer hObj = getApp().getNodeStore ().fetch (hash);
if (hObj)

View File

@@ -17,6 +17,7 @@
*/
//==============================================================================
#include <ripple/nodestore/Database.h>
namespace ripple {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_BACKEND_H_INCLUDED
#define RIPPLE_NODESTORE_BACKEND_H_INCLUDED
#include <ripple/nodestore/Types.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_DATABASE_H_INCLUDED
#define RIPPLE_NODESTORE_DATABASE_H_INCLUDED
#include <ripple/nodestore/NodeObject.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_DUMMYSCHEDULER_H_INCLUDED
#define RIPPLE_NODESTORE_DUMMYSCHEDULER_H_INCLUDED
#include <ripple/nodestore/Scheduler.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_FACTORY_H_INCLUDED
#define RIPPLE_NODESTORE_FACTORY_H_INCLUDED
#include <ripple/nodestore/Backend.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,9 @@
#ifndef RIPPLE_NODESTORE_NODEOBJECT_H_INCLUDED
#define RIPPLE_NODESTORE_NODEOBJECT_H_INCLUDED
#include <ripple/module/basics/utility/CountedObject.h>
#include <ripple/module/data/protocol/Protocol.h>
// VFALCO NOTE Intentionally not in the NodeStore namespace
namespace ripple {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_SCHEDULER_H_INCLUDED
#define RIPPLE_NODESTORE_SCHEDULER_H_INCLUDED
#include <ripple/nodestore/Task.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,10 @@
#ifndef RIPPLE_NODESTORE_TYPES_H_INCLUDED
#define RIPPLE_NODESTORE_TYPES_H_INCLUDED
#include <ripple/nodestore/NodeObject.h>
#include <beast/module/core/text/StringPairArray.h>
#include <vector>
namespace ripple {
namespace NodeStore {

View File

@@ -19,6 +19,8 @@
#if RIPPLE_HYPERLEVELDB_AVAILABLE
#include <ripple/module/core/functional/Config.h>
namespace ripple {
namespace NodeStore {

View File

@@ -22,6 +22,8 @@
#if RIPPLE_HYPERLEVELDB_AVAILABLE
#include <ripple/nodestore/Factory.h>
namespace ripple {
namespace NodeStore {

View File

@@ -17,6 +17,10 @@
*/
//==============================================================================
#if RIPPLE_LEVELDB_AVAILABLE
#include <ripple/module/core/functional/Config.h>
namespace ripple {
namespace NodeStore {
@@ -273,3 +277,5 @@ make_LevelDBFactory ()
}
}
#endif

View File

@@ -20,6 +20,10 @@
#ifndef RIPPLE_NODESTORE_LEVELDBFACTORY_H_INCLUDED
#define RIPPLE_NODESTORE_LEVELDBFACTORY_H_INCLUDED
#if RIPPLE_LEVELDB_AVAILABLE
#include <ripple/nodestore/Factory.h>
namespace ripple {
namespace NodeStore {
@@ -32,3 +36,5 @@ std::unique_ptr <Factory> make_LevelDBFactory ();
}
#endif
#endif

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_MEMORYFACTORY_H_INCLUDED
#define RIPPLE_NODESTORE_MEMORYFACTORY_H_INCLUDED
#include <ripple/nodestore/Factory.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_NULLFACTORY_H_INCLUDED
#define RIPPLE_NODESTORE_NULLFACTORY_H_INCLUDED
#include <ripple/nodestore/Factory.h>
namespace ripple {
namespace NodeStore {

View File

@@ -19,8 +19,8 @@
#if RIPPLE_ROCKSDB_AVAILABLE
#include <ripple/module/core/functional/Config.h>
#include <beast/threads/Thread.h>
#include <atomic>
namespace ripple {

View File

@@ -20,6 +20,10 @@
#ifndef RIPPLE_NODESTORE_ROCKSDBFACTORY_H_INCLUDED
#define RIPPLE_NODESTORE_ROCKSDBFACTORY_H_INCLUDED
#if RIPPLE_ROCKSDB_AVAILABLE
#include <ripple/nodestore/Factory.h>
namespace ripple {
namespace NodeStore {
@@ -32,3 +36,5 @@ std::unique_ptr <Factory> make_RocksDBFactory ();
}
#endif
#endif

View File

@@ -20,6 +20,9 @@
#ifndef RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED
#define RIPPLE_NODESTORE_BATCHWRITER_H_INCLUDED
#include <ripple/nodestore/Scheduler.h>
#include <ripple/nodestore/Task.h>
#include <ripple/nodestore/Types.h>
#include <condition_variable>
#include <mutex>

View File

@@ -20,11 +20,13 @@
#ifndef RIPPLE_NODESTORE_DATABASEIMP_H_INCLUDED
#define RIPPLE_NODESTORE_DATABASEIMP_H_INCLUDED
#include <ripple/module/basics/log/LogPartition.h>
#include <ripple/nodestore/Database.h>
#include <beast/threads/Thread.h>
#include <thread>
#include <condition_variable>
#include <chrono>
#include <condition_variable>
#include <set>
#include <thread>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_DECODEDBLOB_H_INCLUDED
#define RIPPLE_NODESTORE_DECODEDBLOB_H_INCLUDED
#include <ripple/nodestore/NodeObject.h>
namespace ripple {
namespace NodeStore {

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include <ripple/nodestore/DummyScheduler.h>
namespace ripple {
namespace NodeStore {

View File

@@ -20,6 +20,8 @@
#ifndef RIPPLE_NODESTORE_ENCODEDBLOB_H_INCLUDED
#define RIPPLE_NODESTORE_ENCODEDBLOB_H_INCLUDED
#include <beast/module/core/memory/MemoryBlock.h>
namespace ripple {
namespace NodeStore {

View File

@@ -17,6 +17,8 @@
*/
//==============================================================================
#include <ripple/nodestore/Manager.h>
namespace ripple {
namespace NodeStore {

View File

@@ -29,7 +29,6 @@
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <ripple/module/core/nodestore/NodeStore.cpp>
#include <beast/http/ParsedURL.h>
#include <ripple/unity/net.h> // for HTTPClient

View File

@@ -28,8 +28,6 @@
#include <ripple/resource/api/LegacyFees.h>
#include <ripple/module/core/nodestore/NodeStore.h>
#include <ripple/module/core/functional/ConfigSections.h>
#include <ripple/module/core/functional/Config.h>
#include <ripple/module/core/functional/LoadFeeTrack.h>

View File

@@ -20,6 +20,12 @@
#ifndef RIPPLE_LEVELDB_H_INCLUDED
#define RIPPLE_LEVELDB_H_INCLUDED
#ifndef RIPPLE_LEVELDB_AVAILABLE
# define RIPPLE_LEVELDB_AVAILABLE 1
#endif
#if RIPPLE_LEVELDB_AVAILABLE
#define SNAPPY
#include "leveldb/cache.h"
#include "leveldb/filter_policy.h"
@@ -27,3 +33,5 @@
#include "leveldb/write_batch.h"
#endif
#endif

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
//==============================================================================
#include <memory>
#include <vector>
// backend support
#include <ripple/unity/leveldb.h>
#include <ripple/unity/hyperleveldb.h>
#include <ripple/unity/rocksdb.h>
#include <beast/cxx14/memory.h>
#include <ripple/common/seconds_clock.h>
#include <ripple/common/TaggedCache.h>
#include <ripple/common/KeyCache.h>
#include <ripple/nodestore/impl/Tuning.h>
#include <ripple/nodestore/impl/DecodedBlob.h>
#include <ripple/nodestore/impl/EncodedBlob.h>
#include <ripple/nodestore/impl/BatchWriter.h>
#include <ripple/nodestore/backend/HyperDBFactory.h>
#include <ripple/nodestore/backend/HyperDBFactory.cpp>
#include <ripple/nodestore/backend/LevelDBFactory.h>
#include <ripple/nodestore/backend/LevelDBFactory.cpp>
#include <ripple/nodestore/backend/MemoryFactory.h>
#include <ripple/nodestore/backend/MemoryFactory.cpp>
#include <ripple/nodestore/backend/NullFactory.h>
#include <ripple/nodestore/backend/NullFactory.cpp>
#include <ripple/nodestore/backend/RocksDBFactory.h>
#include <ripple/nodestore/backend/RocksDBFactory.cpp>
#include <ripple/nodestore/impl/Backend.cpp>
#include <ripple/nodestore/impl/BatchWriter.cpp>
#include <ripple/nodestore/impl/DatabaseImp.h>
#include <ripple/nodestore/impl/Database.cpp>
#include <ripple/nodestore/impl/DummyScheduler.cpp>
#include <ripple/nodestore/impl/DecodedBlob.cpp>
#include <ripple/nodestore/impl/EncodedBlob.cpp>
#include <ripple/nodestore/impl/Factory.cpp>
#include <ripple/nodestore/impl/Manager.cpp>
#include <ripple/nodestore/impl/NodeObject.cpp>
#include <ripple/nodestore/impl/Scheduler.cpp>
#include <ripple/nodestore/impl/Task.cpp>
#include <ripple/nodestore/tests/TestBase.h>
#include <ripple/nodestore/tests/BackendTests.cpp>
#include <ripple/nodestore/tests/BasicTests.cpp>
#include <ripple/nodestore/tests/DatabaseTests.cpp>
#include <ripple/nodestore/tests/TimingTests.cpp>