mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Insight support for ResourceManager
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#ifndef RIPPLE_RESOURCE_MANAGER_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_MANAGER_H_INCLUDED
|
||||
|
||||
#include "beast/beast/insight/Collector.h"
|
||||
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
@@ -30,9 +32,7 @@ protected:
|
||||
Manager ();
|
||||
|
||||
public:
|
||||
static Manager* New (Journal journal);
|
||||
|
||||
virtual ~Manager() { }
|
||||
virtual ~Manager() = 0;
|
||||
|
||||
/** Create a new endpoint keyed by inbound IP address. */
|
||||
virtual Consumer newInboundEndpoint (IPAddress const& address) = 0;
|
||||
@@ -56,6 +56,12 @@ public:
|
||||
virtual void importConsumers (std::string const& origin, Gossip const& gossip) = 0;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
std::unique_ptr <Manager> make_Manager (
|
||||
insight::Collector::ptr const& collector,
|
||||
Journal journal);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user