CatapultServer  v0.5.0.1 (Elephant)
RemoteDiagnosticApi.h
Go to the documentation of this file.
1 
21 #pragma once
28 #include "catapult/thread/Future.h"
29 
30 namespace catapult { namespace ionet { class PacketIo; } }
31 
32 namespace catapult { namespace extensions {
33 
36  private:
37  template<typename T>
39 
40  public:
41  virtual ~RemoteDiagnosticApi() = default;
42 
43  public:
46 
49 
52 
55 
58  model::AddressRange&& addresses) const = 0;
59 
62  model::EntityRange<NamespaceId>&& namespaceIds) const = 0;
63 
66  model::EntityRange<MosaicId>&& mosaicIds) const = 0;
67  };
68 
70  std::unique_ptr<RemoteDiagnosticApi> CreateRemoteDiagnosticApi(ionet::PacketIo& io);
71 }}
catapult::extensions::RemoteDiagnosticApi::accountRestrictionsInfos
virtual future< model::EntityRange< model::CacheEntryInfo< Address > > > accountRestrictionsInfos(model::AddressRange &&addresses) const =0
Gets account restrictions infos for all accounts with addresses in addresses.
catapult::extensions::RemoteDiagnosticApi
An api for retrieving diagnostic information from a remote node.
Definition: RemoteDiagnosticApi.h:35
DiagnosticCounterValue.h
PacketEntityUtils.h
RemoteDiagnosticApi.h
m_impl
api::RemoteRequestDispatcher m_impl
Definition: RemoteDiagnosticApi.cpp:161
catapult::extensions::RemoteDiagnosticApi::confirmTimestampedHashes
virtual future< state::TimestampedHashRange > confirmTimestampedHashes(state::TimestampedHashRange &&timestampedHashes) const =0
Gets all timestamped hashes in timestampedHashes that are unconfirmed, i.e. not in the hash cache.
catapult::extensions::RemoteDiagnosticApi::accountInfos
virtual future< model::EntityRange< model::CacheEntryInfo< Address > > > accountInfos(model::AddressRange &&addresses) const =0
Gets account infos for all accounts with addresses in addresses.
catapult::model::EntityRange
Represents a range of entities.
Definition: EntityRange.h:31
PacketPayloadFactory.h
catapult::extensions::RemoteDiagnosticApi::namespaceInfos
virtual future< model::EntityRange< model::CacheEntryInfo< NamespaceId > > > namespaceInfos(model::EntityRange< NamespaceId > &&namespaceIds) const =0
Gets namespace infos for all namespace ids in namespaceIds.
catapult::extensions::RemoteDiagnosticApi::~RemoteDiagnosticApi
virtual ~RemoteDiagnosticApi()=default
catapult::ionet::PacketType
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
catapult::ionet::PacketIo
An interface for reading and writing packets.
Definition: PacketIo.h:31
PackedNodeInfo.h
catapult::thread::future
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
Friendly_Name
static constexpr auto Friendly_Name
Definition: RemoteDiagnosticApi.cpp:37
DiagnosticHandlers.h
catapult::extensions::RemoteDiagnosticApi::diagnosticCounters
virtual future< model::EntityRange< model::DiagnosticCounterValue > > diagnosticCounters() const =0
Gets current diagnostic counter values.
catapult::ionet::PacketPayloadFactory::FromFixedSizeRange
static PacketPayload FromFixedSizeRange(PacketType type, model::EntityRange< TStructure > &&range)
Creates a packet payload with the specified packet type around a fixed size structure range.
Definition: PacketPayloadFactory.h:45
catapult::extensions::RemoteDiagnosticApi::mosaicInfos
virtual future< model::EntityRange< model::CacheEntryInfo< MosaicId > > > mosaicInfos(model::EntityRange< MosaicId > &&mosaicIds) const =0
Gets mosaic infos for all mosaic ids in mosaicIds.
catapult::extensions::RemoteDiagnosticApi::activeNodeInfos
virtual future< model::EntityRange< ionet::PackedNodeInfo > > activeNodeInfos() const =0
Gets node infos for all active nodes.
Packet_Type
static constexpr auto Packet_Type
Definition: RemoteDiagnosticApi.cpp:36
catapult::state::TimestampedHashRange
model::EntityRange< TimestampedHash > TimestampedHashRange
An entity range composed of timestamped hashes.
Definition: TimestampedHash.h:84
catapult::extensions::CreateRemoteDiagnosticApi
std::unique_ptr< RemoteDiagnosticApi > CreateRemoteDiagnosticApi(ionet::PacketIo &io)
Creates a diagnostic api for interacting with a remote node with the specified io.
Definition: RemoteDiagnosticApi.cpp:165
catapult
Definition: AddressExtractionExtension.cpp:28
Future.h
types.h
CacheEntryInfo.h
RemoteRequestDispatcher.h
TimestampedHash.h
RangeTypes.h
catapult::model::AddressRange
EntityRange< Address > AddressRange
An entity range composed of addresses.
Definition: RangeTypes.h:41
PacketIo.h